Giter Site home page Giter Site logo

makerportal / rpi-pico-ssd1306 Goto Github PK

View Code? Open in Web Editor NEW
49.0 3.0 16.0 171 KB

SSD1306 Library for Raspberry Pi Pico using MicroPython

License: GNU General Public License v3.0

Python 100.00%
rpi-pico raspberry-pi-pico pico-microcontroller wiring micropython wiring-diagram python3 i2c pico ssd1306

rpi-pico-ssd1306's Introduction

SSD1306 OLED with Raspberry Pi Pico

SSD1306 OLED display library for Raspberry Pi Pico using MicroPython.

Get your SSD1306 OLED Display and Frame: https://makersportal.com/shop/arduino-display-oled-ssd1306-i2c-display
Follow along with the full tutorial: https://makersportal.com/blog/raspberry-pi-pico-oled-display

JUMP TO:

- Wiring Diagram
- SSD1306 Examples with Pico
- Image Mapping with Python3

The RPi Pico WS2812 library can be downloaded using git:

git clone https://github.com/makerportal/rpi-pico-ssd1306

- Wiring Diagram -

The wiring between the Pico and SSD1306 OLED is given below: SSD1306 RPi Pico Wiring

Pico SSD1306
3V3 (Pin 36) VDD
GND (Pin 38) GND
I2C1_SDA (GP26) SDA
I2C1_SCL (GP27) SCK

The SSD1306 OLED is wired to the RPi Pico via the I2C port. On the Pico, there are two different I2C ports I2C0, I2C1. We are wiring to the I2C1 port via GPIO pins 26/27 (physical pins 31/32).

- SSD1306 Examples with Pico -

The 'micropython' subfolder houses the actual codes to be uploaded to the Pico microcontroller via Thonny.

Each example contains the ssd1306.py library, which should be uploaded as a separate file to the Pico microcontroller. The main.py file should be uploaded to the Pico and will act as the primary script, which runs after every boot. Thus, both files are required when testing each example. Additionally, if displaying an image, the 'imgfile.py' should also be saved locally on the Pico.

- Image Mapping with Python3 -

The Python3 folder houses a script that must be run with Python3 rather than MicroPython. The reason being - an image needs to be stored locally, which will then be converted to an array of bytes. This array of bytes is then stored in the 'imgfile.py' file. The 'imgfile.py' is what the SSD1306 reads and prints as the logo or image upon running the logo_display example.

rpi-pico-ssd1306's People

Contributors

josh-hrisko avatar josh-wawico avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rpi-pico-ssd1306's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.