Skip to content

gathualex/74hc595-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

74hc595-driver

This repository contains micropython implementation of 74hc595 shift register driver.

nodemcu-32s pinout

Usage

from time import sleep
from hc595 import Hc595

# create shift register driver
sr = Hc595(
    serial_in_pin=23,
    clock_pin=18,
    latch_pin=5,
)

sr.shiftout(pin=2, toggle = False, master_reset= False)

# toggle output means that output will be toggled on each shiftout call on/off
sr.shiftout(pin=2, toggle = True, master_reset= False)

# master reset means that all outputs will be set to 0
sr.shiftout(pin=2, toggle = True, master_reset= True)

About

This repo contains code to interact with 74HC595 in micropython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages