The Heltec ESP32 board has a lot of memory and processing power (see below the console from tasmota flasher). Just for the fun sake and maybe an usefull one beside experimenting, I will give a chance to micropython.
The only advantege  I see, is that you can access the files and the code running on the board. While are you programming in Arduino, the code is more stable, but you must keep the source code and maybe to keep some versioning of the code for each board you have.

First of all, to install micropython, download download the proper image for your board, find instruction on the oficial site.

Burn it with the uPyCraft or Tasmota PyFlasher or esptool.py. A lot of tools to choose from.

Connect the board and browse the .py files from the filesystem. At first, you will see only the boot.py file.

 

First of all, we want to connect the board to local wifi lan! That’s why I have ESP32 or ESP8266!

This will connect to the network and prints the interface information.

 

Let’s light up the display!

For this, use the ssd1306.py library from the oficial repository: https://github.com/micropython/micropython/blob/master/drivers/display/ssd1306.py

Read the docs from the micropython site, you will find a lot of examples http://docs.micropython.org/en/latest/esp32/quickref.html

This solution works, find the discussion here https://rntlab.com/question/heltec-lora-32-micropython-oled-not-working/

 


Support us getting your parts:

ESP32 Lora
 

Breadboard & wires:

Heltec ESP32 display text in micropython
Tagged on:             

3 thoughts on “Heltec ESP32 display text in micropython

  • February 26, 2021 at 21:31
    Permalink

    Hey dude,

    I just bought the same microcontroller and your tutorial helped me a lot. Thank you so much :).

    Reply
    • February 26, 2021 at 21:49
      Permalink

      thank you!

      Reply
  • July 4, 2021 at 19:54
    Permalink

    Thank you. Other ssd1306 display codes did not work, this worked well.

    Reply

Leave a Reply to escapequotes Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.