Adafruit Feather HUZZAH ESP8266 notes

Submitted by code_admin on Sat, 10/13/2018 - 15:49

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

  1. sudo usermod -a -G dialout ${USER}

Needed a restart

Light blink

  1. const int led = 2; //For Huzzah LEDs are 0 and 2
  2. // 1 is the red light near the usb connector
  3. // 2 is the blue light near the wifi areial
  4.  
  5. void setup() {
  6.   pinMode(led, OUTPUT);
  7. }
  8.  
  9. void loop() {
  10.   digitalWrite(led, HIGH);
  11.   delay(500);
  12.   digitalWrite(led, LOW);
  13.   delay(500);
  14. }

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…

Posts

https://forums.adafruit.com/viewtopic.php?f=24&t=144317

RJM Article Type
Work Notes