Socket
Socket
Sign inDemoInstall

github.com/dcarley/as1130

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/dcarley/as1130

Package as1130 is a library for controlling the AS1130 LED driver, as used by The Matrix from Boldport. The device is configured using registers. Each register is represented as a struct with descriptive field names, comments, and default values. The struct can be passed to the corresponding Set method. You may also wish to refer to the datasheet: http://ams.com/eng/content/download/185846/834724/105034 To connect using the default device path and address: If you need to use another path or address: It's advisable to reset the device before using it: After which you must choose how many blink and PWM sets you want to use and perform the startup sequence. There's a helper method to make this easier: Or you can call SetConfig(), SetCurrentSource() and SetDisplayOption() yourself if you need more control. Frames are defined as grayscale images. They can be manipulated using standard Go image libraries: Each frame is associated with blink and PWM set, which defines flashing and intensity for individual LEDs. You should set the first (default) blink and PWM set at a minimum: An individual frame can be displayed in picture mode: Multiple frames can be displayed in movie mode: When you have finished setting all of the frames you can turn on the display: Have a look at the as1130ctl sub-package for more complete examples.


Version published

Readme

Source

Documentation Build Status

AS1130

Go library for the AS1130 LED driver, as used by The Matrix from Boldport.

It can be used from hardware that supports I²C such as a Raspberry Pi.

as1130 text scrolling

Library

To fetch the library:

go get -u github.com/dcarley/as1130

Refer to godoc for documentation and examples.

CLI

The as1130ctl command line utility lets you:

  • turn on individual LEDs
  • scroll text
  • read registers
  • and more

To fetch and install it:

go get -u github.com/dcarley/as1130/as1130ctl

To see detailed usage information:

as1130ctl --help

FAQs

Last updated on 08 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc