whoopwhoop

This commit is contained in:
LouisFabu 2020-12-30 22:59:56 +01:00
parent 562a93073c
commit 34a646d16e
2 changed files with 8 additions and 8 deletions

View File

@ -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<LED_DATA_PIN, LED_CLOCK_PIN> 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

View File

@ -4,8 +4,8 @@
#include <APA102.h>
// 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;