Skip to content

Instantly share code, notes, and snippets.

@LukasBombach
Last active July 2, 2024 13:18
Show Gist options
  • Select an option

  • Save LukasBombach/49df6ce71740edc79612ca244d0926c4 to your computer and use it in GitHub Desktop.

Select an option

Save LukasBombach/49df6ce71740edc79612ca244d0926c4 to your computer and use it in GitHub Desktop.

Revisions

  1. LukasBombach renamed this gist Jul 2, 2024. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions index.md → diymore_esp32_lora_espruino_setup.md
    Original 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 });
    ```
  2. LukasBombach created this gist Jul 2, 2024.
    30 changes: 30 additions & 0 deletions index.md
    Original 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
    ```