Booted Board Lights
Material and Programs used in this Project:
- Arduino Nano
- SoftwareSerial.h
- FastLED.h
- HM-10 Bluetooth Module
- WS2812B RGB Led Strip
- 9V Battery
- Arduino IDE
- iPhone
- Xcode / Swift
void setup() {
pinMode(9, OUTPUT); // this pin will pull the HC-05 pin 34 (key pin) HIGH to switch module to AT mode
pinMode(2, INPUT);
digitalWrite(9, HIGH);
Serial.begin(9600);
Serial.println("Enter AT commands:");
mySerial.begin(9600); // HC-05 default speed in AT command more
// tell FastLED about the LED strip configuration
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
//FastLED.addLeds<LED_TYPE,DATA_PIN,CLK_PIN,COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
// set master brightness control
FastLED.setBrightness(BRIGHTNESS);
for(int i = 0; i < 1; i++){
FastLED.show();
simpleFill();
}
}