https://github.com/moink/talking_shoe
Lolin-Port | Part-Port | Part |
---|---|---|
GPIO19 | SDA | ADXL345 |
GPIO23 | SCL | ADXL345 |
GPIO17 | RX | DFPlayer |
GPIO16 | TX | DFPlayer |
GPIO34 | Resistor Leg, but not on the Resistor | Photo Resistor |
On-Board LED Blinking works:
#define LED_PIN 22 // Pin number for your built-in LED void setup() { pinMode(LED_PIN, OUTPUT); // Set the LED pin as an output } void loop() { digitalWrite(LED_PIN, HIGH); // Turn the LED on delay(500); // Wait 500 milliseconds digitalWrite(LED_PIN, LOW); // Turn the LED off delay(500); // Wait 500 milliseconds }
/MP3/0001.mp3
3.3V ── LDR ──+─── GPIO34 (A0) │ 10kΩ │ GND
we're not using this one
_____ | | | | | | | | |_____| | | | 1 2 3 1: OUT (Signal) 2: GND 3: VCC (typically 3.3–5V)