- You need to use this as a Generic ESP32 Device
- You need to flash the device with a bootloader, partitions and the firmware
- The
baud
is115200
- Find out your port
ls /dev/tty.*
- Erase previous flash
esptool.py --port "YOUR_PORT" erase_flash
- Download required bins
Download the latest esp32 tgz espruino_XXX_esp32.tgz
from http://www.espruino.com/binaries/travis/master/
- Flash device
esptool.py --chip esp32 --port "YOUR_PORT" --baud 115200 --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader.bin 0x8000 partitions_espruino.bin 0x10000 espruino_esp32.bin
- Set up the Espruino IDE
- Open https://www.espruino.com/ide/
- In
Settings
>Communications
set the Baud Rate to115200
- Display some text on the device's screen
function start(){
// write some text
g.drawString("Hello World!",2,2);
// write to the screen
g.flip();
}
I2C1.setup({ scl: D15, sda: D4 });
var g = require("SSD1306").connect(I2C1, start, { rst: D16 });