Posts

Showing posts from October, 2026

Waveshare 1.54inch e-Paper Module (E) (With driver board)

Image
 Waveshare 1.54inch e-Paper Module (E) (With driver board) - E6 full color (E Ink Spectra 6) Product Pages: ~ https://docs.waveshare.com/1.54inch_e-Paper_E ~ https://docs.waveshare.net/1.54inch_e-Paper_E (Chinese)

Raspberry Pi Pico 2/MicroPython to handle two SSD1306 OLEDs, in main thread and background thread.

Image
Raspberry Pi Pico 2 & MicroPython: Driving Two SSD1306 OLEDs Simultaneously (Multithreading) Connection: To install micropython_ssd1306 on the Raspberry Pi Pico 2, and simple exercise (mpy_pico2_ssd1306.py), read previous post . Exercise Code: # mpy_pico2_dual_ssd1306.py # MicroPython exercise running on Raspberry Pi Pico 2 with RP2350 # to handle two 128x64 SSD1306 OLEDs, one by one. # # https://coxxect.blogspot.com/2026/10/raspberry-pi-pico-2micropython-to.html # import time from machine import Pin, I2C from ssd1306 import SSD1306_I2C from framebuf import FrameBuffer i2c0 = I2C(0) print(i2c0) print(i2c0.scan()) oled0 = SSD1306_I2C(128, 64, i2c0) print(oled0.width, "x", oled0.height) i2c1 = I2C(1) print(i2c1) print(i2c1.scan()) oled1 = SSD1306_I2C(128, 64, i2c1) print(oled1.width, "x", oled1.height) def fill_oled(oled_id, oled, ticks_ms, ticks_diff, sleep_ms): start_time = time.ticks_ms() for y in range(oled.height): for...

micropython_ssd1306  on the Raspberry Pi Pico 2 to control SSD1306 OLED

Image
Installing  micropython_ssd1306  on the Raspberry Pi Pico 2 with Thonny This video explains how to install the  micropython_ssd1306  library (the SSD1306 OLED driver for MicroPython) on the Raspberry Pi Pico 2 using the Thonny Package Manager. Connect your Raspberry Pi Pico 2 (with MicroPython firmware) to your computer. Open Thonny and configure the interpreter for the Raspberry Pi Pico 2 (MicroPython). In the top menu, go to Tools > Manage packages... Search for  micropython-ssd1306  and click Install. Connection: Exercise code: # mpy_pico2_ssd1306.py # MicroPython exercise running on Raspberry Pi Pico 2 with RP2350 # to control 128x64 SSD1306 OLED. # # https://coxxect.blogspot.com/2026/10/installing-micropythonssd1306-on.html # import time from machine import Pin, I2C from ssd1306 import SSD1306_I2C from framebuf import FrameBuffer i2c = I2C(0) print(i2c) print(i2c.scan()) oled = SSD1306_I2C(128, 64, i2c) prin...