Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP8266 support #286

Merged
merged 1 commit into from
Apr 11, 2016
Merged

ESP8266 support #286

merged 1 commit into from
Apr 11, 2016

Conversation

soundanalogous
Copy link
Member

Adds support for using any* of the ESP8266 boards supported by the ESP8266 Arduino core.

  • *Has only been tested using the Adafruit HUZZAH ESP8266 board but should work with other boards.
  • Currently only supports using as WiFi server (client version coming soon)

bare minimum esp support

missing paren

pin functions based on board depended defaults

to support different ESP8266 boad layouts, use board depended constants
from "...\esp8266\hardware\esp8266\2.1.0\variants\...\pins_arduino.h"

analog pin mapping fixed

requires Arduino core for ESP8266 V2.2

VERSION_BLINK_PIN and PIN_SERIAL1_TX removed

most remaining absolte pin numbers/counts replaced by defines/constants from pins_arduino.h

config optimizations

- Firmata 2.5.1 or higher required
- esp8266/Adruino needs to fix macros digitalPinHasPWM and
digitalPinToInterrupt
- no wifio board support

fixed macro IS_PIN_INTERRUPT

new define DEFAULT_PWM_RESOLUTION

- default to 8-bit for all architectures and board
- ESP8266 default is 10-bit

examples updated to use define DEFAULT_PWM_RESOLUTION

WiFiStream variant integration

wifi updates

- Consolidate WiFi stream classes into single class
- Remove unused WiFi stream classes
- Fix ESP8266 serial output (needed flush)
- Fix ESP8266 connection status issue
- Automatically include WiFi lib for MKR1000 and ESP8266
- Simplify config error checking
- Update instructions in wifiConfig.h
- Do not ignore MKR1000 pins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants