Skip to content

LucaL1fe/ssd1306-esp-micropython-custom-font-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

ssd1306-esp-micropython-custom-font-size

Hello, I was frustrated with the default font size of the OLED display SSD1306 while using MicroPython on an ESP32. After searching for a solution and finding none, I decided to create one myself by borrowing and modifying existing code.

Interested?

image

Here's what you need to do:

  1. Copy and paste ssd1306.py and example.py into the same directory on the ESP32.
  2. Execute example.py and it should work.

The key is the new write_text() function in ssd1306.py.

oled.write_text(f"{i}%", 5, 15, 5)  # Text, Position x, Position y, **font size multiplier**

I hope this helps! If it does, a star would be wonderful :D

Credits:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages