Posts

Showing posts with the label display SH1107 SPI OLED

Serial communication between two RP2040 (Arduino Framework)

Image
These are simple examples to implement Serial Communication, between Raspberry Pi Pico and WeAct RP2040 with 128x128 SH1107 SPI OLED . Connection between two RP2040s +-----------------------------------+ | | |      +----------------------------------+ |      |           | | |      | +------------------------------------+ |      | |      | |    | |      | |           +---------------+    | |   | +---------------+ |      +-|-TX    GP0 | RPi Pico | | | +---TX GP0 | WeAct RP2040 | |      +-RX GP1 | | | +-------RX GP1 | | +------------GND | | +---------------GND | | |           | |           Connection: Raspberry Pi WeAct RP2040 Pico =========...

Display on 128x128 SH1107 SPI OLED with RP2040 (Arduino Framework) using U8g2 lib.

Image
Steps to setup library on Arduino IDE, to display on 1.12" 128x128 SH1107 SPI OLED with RP2040. Tested on WeAct RP2040 (16MB) . Run example, using suitable constructor and run. Library: Install U8g2 in Arduino IDE Library Manager.  U8g2 is a library for monochrome displays, version 2. Connection: Raspberry Pi Pico pre-defines SPI pins in Arduino are: SPI_MOSI:      19 SPI_MISO:      16 (not use) SPI_SCK:         18 Connection between RP2040 and SH1107 SPI OLED SH1107 RP2040 ================== GND GND VCC 3V3 SCL GP18 SDA GP19 RES GP20 DC GP21 CS GP22 Example: Open Examples > U8g2 > full_buffer > GraphicsTest In my test, Use one of the constructors: U8G2_SH1107_PIMORONI_128X128_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 22, /* dc=*/ 21, /* reset=*/ 20); //U8G2_SH1107_SEEED_128X128_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 22, /* dc=*/ 21, /* reset=*/...

RP2040/CircuitPython display on SH1107 SPI OLED

Image
Exercise of using WeAct RP2040 (16MB) with CircuitPython 8.0.4  to display on 1.12" 128x128 SH1107 SPI OLED . Connection      SH1107 RP2040      ==================      GND           GND      VCC           3V3      SCL           GP10      SDA           GP11      RES           GP13      DC           GP14      CS           GP15 Prepare Library Visit https://circuitpython.org/libraries , download CircuitPython Libraries Bundle for Version 8.x. Upload adafruit_display_text adafruit_display_shapes folders, and adafruit_displayio_sh1107.mpy to CircuitPython device's /lib. Exercise Code cpyRP_SH1107_hello.py """ Exercise ru...

1.12" 128x128 SH1107 SPI OLED

Image
 my display module: 1.12" 128x128 SH1107 SPI OLED ~ product page Exercise: ~  RP2040/CircuitPython display on SH1107 SPI OLED ~  Display on 128x128 SH1107 SPI OLED with RP2040 (Arduino Framework) using U8g2 lib ~  Serial communication between two RP2040 (Arduino Framework)