8000 GitHub - combs/Python-ST7032
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

combs/Python-ST7032

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-ST7032

This is a Python port of arduino_ST7032. It lets you use these devices in I2C mode. Parallel/8bit/4bit and SPI modes are not currently supported.

ST7032 is an i2c character display driver, embedded in some fancier character displays.

Where to get them

Tested good: BuyDisplay 16x2 COG

Many on eBay, search with description for st7032

Wiring

I2C SDA, SCL to your devices' best pins for these.

XRESET to VDD. It will not respond without this.

Backlights typically are raw LEDs; the buydisplay white-on-blue expects 3.1v at 15ma, or ~ 120 ohm resistor from 5v.

Enable i2c mode with these pins:

PSB to VDD PSI2B to GND

Datasheet also says E to VDD, I haven't found this necessary

0.1-4.7uf capacitor across CAP1P (positive) and CAP1N (negative)

VDD to 2.7-5.5V VSS to GND

Software usage

device = st7032.ST7032()
device.setContrast(53)
device.clear()
device.write("Hello World!")
device.setCursor(0,1)  # column 0, row 1
device.write("Goodbye")

Params

Pass these to ST7032():

    busnum = 0      # i2c bus
    address = 0x3e  # i2c address
    lines = 2       # is this a 1-line, 2-line, 4-line display
    dotsize = 0       # I'm not sure what this does 

Future improvements, bugs

Please file a GitHub issue. Thanks!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0