Skip to content

Golang library to interact with LED driver MAX7219 via SPI-bus from Raspberry PI.

License

Notifications You must be signed in to change notification settings

adrianh-za/go-max7219-rpi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Max7219

Library written in Go to allow controlling of the MAX7219 LED module. Source forked from https://github.com/d2r2/go-max7219

Enhancements

  • Works with pre-assembled 4-in-1 MAX7219 LED module matrices.
  • Set the rotational direction of the MAX7219 LED modules.
    • Some of the pre-assembled 4-in-1 LED modules are connected "upsidedown" to the circuit board. Using the inverted rotational directions allows for supporting of these MAX7219 4-in-1 LED module matrices.
  • Sliding of text with blank padding before and after text.

Usage

  1. go get github.com/adrianh-za/go-max7219
  2. browse to $/go/src/github.com/adrianh-za/go-max7219/examples
  3. sudo -E go run [filename].go
  4. run to end (or ctrl-c to quit)

Examples filenames

  • chars-4in1.go
  • chars.go
  • font-4in1.go
  • font.go
  • slide.go
  • slide-4in1.go
  • slide-4in1-invert.go

Compatibility

Tested on Raspberry PI 3 B+

Acknowledgements

Thanks to Denis Dyakov for his excellent libraries

Gits

https://github.com/d2r2/go-max7219

About

Golang library to interact with LED driver MAX7219 via SPI-bus from Raspberry PI.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.1%
  • Shell 0.9%