Published: Updated:

Table of contents

I proudly present OledButton class and tools that is created to manage evaluation kit CY-7031 for OLED button CY-3031 through serial port (RS485).

CY-7031 CY-3031

Install

Written on Python 3.5. I have no idea how it works on other previous versions. Do not try Python 2 because of new types such as bytes and bytearray.

You need:

Inevitable PySerial

pip install pyserial

Advisable Pillow (PIL fork)

pip install Pillow

numpy to convert any image to bmp565 format

pip install numpy

Run

Look inside main.py, write your own workflow and run

python main.py

resulted picture after almost correct bitmap data encoding

Rate this page