Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Sakartu/TM74HC595

A micropython driver for 8-segment displays controlled by the TM74HC595 controller
https://github.com/Sakartu/TM74HC595

Last synced: 2 months ago
JSON representation

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

Lists

README

        

# 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):

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

This should show you a test sequence on your display.