www.aliexpress.com: $7.60, 5 Jan 2016
Docs: http://www.wemos.cc/d1/
http://www.wemos.cc/d1/Getting_Started
- based on the ESP-8266EX.
- Arduino Compatible, you can use it on Arduino IDE.
- 11 Digital I/O pins
- 1 Analog Input pin
- OTA -- Wireless Upload(Program)
- Onboard switching power supply -- Max 24V input, 5V 1A output
- All GPIOs are 3.3 volts only
cd ~/build
git clone https://github.com/esp8266/Arduino.git esp8266
#cd ~/sketchbook
cd /opt/Arduino/hardware
ln -s ~/build/esp8266 ./esp8266
cd ./esp8266/tools
sudo ./get.py
ARDUINO SKETCH
Board: WeMos D1
CPU Freq: 80 MHz
Upload using: Serial
Upload speed: 115200
Port:
Programmer: USBasp
Compile AVR code (ARDUINO NANO)
$(TOOLCHAIN_DIR)/avr-g++ -c -g -Os -std=gnu++11 -fno-exceptions \-ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p \
-DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR \
"-I/opt/Arduino/hardware/arduino/avr/cores/arduino" \
"-I/opt/Arduino/hardware/arduino/avr/varians/eightanaloginputs"
<C/C++ source> -o <.o file>
TOOLCHAIN_DIR = /opt/Arduino/hardware/tools/avr/bin
or
/usr/bin
UPLOAD
with avrdude:/usr/bin/avrdude -q -V -p atmega328p -C /etc/avrdude.conf -D -c arduino -b 57600 -P /dev/ttyUSB0 \
-U flash:w:build-nano-atmega328/Blink.hex:i
make show_boards
No comments:
Post a Comment