This repository contains a Platformio project for me to test out the Zio Qwiic OLED Display (1.5inch, 128x128) .
There are two environments configured for the two boards I have right now at my disposal:
The Adafruit Huzzah has hardware I2C built-in, so I'm using the HW version of the SSD1327 for it. It is noticably faster the software I2C version. It uses GPIO4 (SDA) and GPIO5 (SCL) for I2C.
The ESP32-C3 doesn't have hardware I2C so we have to use the much slower software implementation (it takes 5 seconds for a single frame to be processed). I used GPIO6 for SCL and GPIO7 for SDA, but these can be changed in the platformio.ini config.
The program itself is fairly simple, it's just a simple counter that starts at 0 and probably continuous untill it overflows.
To connect to my devices from WSL I used this guide Connect USB devices.
Since I'm on OpenSuse in WSL, I had to use these commands to install everything I needed
sudo zypper addrepo https://download.opensuse.org/repositories/network/15.4/network.repo
sudo zypper refresh
sudo zypper install usbip
sudo zypper install usbutils
For some reason, the USB device is created with root:root
as owner and 0600
as permissions, so I chown
it to my user everytime I attach my adapter to WSL (usbipd wsl attach --busid 16-3
)