Skip to content

Golang module for controlling the Adafruit seven segment LED display with backpack (ht16K33 i2c)

License

Notifications You must be signed in to change notification settings

rafalop/sevensegment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sevensegment

Golang module for controlling the Adafruit seven segment LED display with backpack (HT16K33 i2c), using golang's periphio.

Note this was developed for use on a raspberry pi.

Examples of how to use are in example.go which does some simple tasks such as displaying numbers digits at specific positions, displaying a number up to 9999, letters, particular segments and setting the brightness.

eg. (assuming device addr on i2c bus is 0x70)

go mod init main
go run example.go

References and links

periphio (i2c)
https://periph.io/
https://godoc.org/periph.io/x/periph/conn/i2c

Adafruit LED backpack HT16k33 datasheet (info about commands/settings for the HT16K33)
https://cdn-shop.adafruit.com/datasheets/ht16K33v110.pdf

Adafruit LED backpack C/C++ library
https://github.com/adafruit/Adafruit_LED_Backpack

About

Golang module for controlling the Adafruit seven segment LED display with backpack (ht16K33 i2c)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages