https://learn.adafruit.com/adafruit-feather-huzzah-esp8266?view=all
Baud 9600
CLRF \r\n
sudo screen /dev/ttyUSB0 9600
screen quit= crtl-A -> ctrl-D
sudo cat /dev/ttyUSB0
sudo su
echo "gpio.mode(3, gpio.OUTPUT)" > /dev/ttyUSB0
echo "gpio.write(3, gpio.LOW)" > /dev/ttyUSB0
echo "gpio.write(3, gpio.HIGH)" > /dev/ttyUSB0
Tutorial I am following:
https://learn.adafruit.com/adafruit-feather-huzzah-esp8266/using-arduin…
I had to add my user to the same group as /dev/ttyUSB0
-
sudo usermod -a -G dialout ${USER}
Needed a restart
Light blink
-
const int led = 2; //For Huzzah LEDs are 0 and 2
-
// 1 is the red light near the usb connector
-
// 2 is the blue light near the wifi areial
-
-
void setup() {
-
pinMode(led, OUTPUT);
-
}
-
-
void loop() {
-
digitalWrite(led, HIGH);
-
delay(500);
-
digitalWrite(led, LOW);
-
delay(500);
-
}
Example (including wiring) driving neopixels
https://learn.adafruit.com/feather-weather-lamp/circuit-diagram
Example showing power connection for non-feather version
https://www.instructables.com/id/The-Cat-Has-Left-the-Building-ESP8266-…
Other links
https://github.com/bblanchon/ArduinoJson
USB Connection colours
https://electronics.stackexchange.com/questions/183218/can-the-data-wir…
Neopixel Guide - https://learn.adafruit.com/adafruit-neopixel-uberguide/the-magic-of-neo…