This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
const byte addressSlave = 7; | |
int rxValue; | |
void setup() | |
{ | |
Wire.begin(addressSlave); | |
Wire.onReceive(receiveEvent); | |
Serial.begin(115200); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include "FastLED.h" | |
const byte pinData = 3; | |
const byte pinSEN0232 = A0; | |
const byte pinPotentiometerMin = A1; | |
const byte pinPotentiometerMax = A2; | |
const byte ledCount = 24; | |
const byte ledBrightness = 192; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
const byte pinData = 6; | |
const byte pinSEN0232 = A0; | |
const byte pinPotentiometerMin = A1; | |
const byte pinPotentiometerMax = A2; | |
const float EMA_a = 0.7; // Lower is more laggy but smoother | |
const byte ledCount = 24; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
const byte pinData = 6; | |
const byte pinSEN0232 = A0; | |
const byte pinPotentiometerMin = A1; | |
const byte pinPotentiometerMax = A2; | |
const float EMA_a = 0.6; | |
const byte ledCount = 24; |