Last active
July 2, 2024 13:18
-
-
Save LukasBombach/49df6ce71740edc79612ca244d0926c4 to your computer and use it in GitHub Desktop.
Revisions
-
LukasBombach renamed this gist
Jul 2, 2024 . 1 changed file with 19 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -28,3 +28,22 @@ Download the latest esp32 tgz `espruino_XXX_esp32.tgz` from http://www.espruino. 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 ``` 5. Set up the Espruino IDE * Open https://www.espruino.com/ide/ * In `Settings` > `Communications` set the Baud Rate to `115200` 5. Display some text on the device's screen ```js 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 }); ``` -
LukasBombach created this gist
Jul 2, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Things that are specific for the diymore ESP32 LoRa in combination with Espruino * 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` is `115200` # How to 1. Find out your port ```sh ls /dev/tty.* ``` 2. Erase previous flash ```sh esptool.py --port "YOUR_PORT" erase_flash ``` 3. Download required bins Download the latest esp32 tgz `espruino_XXX_esp32.tgz` from http://www.espruino.com/binaries/travis/master/ 4. Flash device ```sh 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 ```