Skip to content

A micropython driver for 8-segment displays controlled by the TM74HC595 controller

Notifications You must be signed in to change notification settings

Sakartu/TM74HC595

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

TM74HC595

A micropython driver for 8-segment displays controlled by the TM74HC595 controller.

The show_sequence method of the TM74HC595Controller class explains how to use this driver.

Furthermore, if you want to test whether your setup is hooked up correctly, you can try the following. Attach the VCC and GND to their respective ports on your board. Even though the TM74HC595 is officially rated to work at 5v I have had no problems attaching both VCC and data pins to just 3.3V. Then hook up the SCLK, RCLK and DIO ports to three free digital pins on your board and note their numbers. After uploading the TM74HC595.py file to your board, paste the following code in your micropython shell, making sure to change the three port numbers for SCLK, RCLK and DIO and the last number to the number of displays (usually 4 or 8):

>>> import TM74HC595
>>> TM74HC595.TM74HC595Controller(sclk=21, rclk=22, dio=23, num_displays=4).test()

This should show you a test sequence on your display.

About

A micropython driver for 8-segment displays controlled by the TM74HC595 controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages