diff --git a/led_bikewheel.ino b/led_bikewheel.ino index 2788711..3504008 100644 --- a/led_bikewheel.ino +++ b/led_bikewheel.ino @@ -24,15 +24,15 @@ #endif // CONFIGURE please configure next lines depending on your stripes arragmentment -#define HALL_PIN 2 // digital pin of hall sensor +#define HALL_PIN 5 // digital pin of hall sensor #define ROUND_COUNT 1 // how many rounds to take time (minimum 1) #define NUM_SEGMENTS 360 // how much segements to divide image (gives an angle precision of 360 / NUM_SEGMENTS) #define LED_COUNT 26 // how many LEDs on one stripe -#define LED_STRIPES 4 // how many LEDs stripes on wheel +#define LED_STRIPES 2 // how many LEDs stripes on wheel -int strip_matrix_offset[LED_STRIPES] = {0, 0, (NUM_SEGMENTS / 2), (NUM_SEGMENTS / 2)}; // given offset in segments for stripe -bool strip_matrix_invert[LED_STRIPES] = {false, true, false, true}; // set LEDs in revert order for stripe +int strip_matrix_offset[LED_STRIPES] = {0, 0}; // given offset in segments for stripe +bool strip_matrix_invert[LED_STRIPES] = {false, true}; // set LEDs in revert order for stripe // \CONFIGURE // LED stripes @@ -41,8 +41,8 @@ bool strip_matrix_invert[LED_STRIPES] = {false, true, false, true}; #define BRIGHTNESS 10 // brightness for LED strip [0-255] Adafruit_NeoPixel ledStrip(LED_COUNT *LED_STRIPES, LED_PIN, NEO_GRB + NEO_KHZ800); #else -#define LED_DATA_PIN 10 // data pin for LED strip -#define LED_CLOCK_PIN 11 // clock pin for LED strip +#define LED_DATA_PIN 3 // data pin for LED strip +#define LED_CLOCK_PIN 2 // clock pin for LED strip APA102 ledStrip; #define BRIGHTNESS 1 // brightness for LED strip [0-31] rgb_color color_buffer[LED_COUNT * LED_STRIPES]; // color buffer to write to LED stripe diff --git a/led_test/led_test.ino b/led_test/led_test.ino index 159a444..42e6135 100644 --- a/led_test/led_test.ino +++ b/led_test/led_test.ino @@ -4,8 +4,8 @@ #include // Define which pins to use. -const uint8_t dataPin = 10; -const uint8_t clockPin = 11; +const uint8_t dataPin = 3; +const uint8_t clockPin = 2; const uint8_t brightness = 1; const uint16_t led_count = 112;