Adafruit I2C Backpack Control from BS2

JonnyMacJonnyMac Posts: 6,182
edited 2016-12-28 - 00:43:15 in BASIC Stamp
An EFX-TEK customer asked for a demo for the Adafruit 7-segment I2C backpack; I thought I'd share here, too. There's not a lot of memory in the BS2 so I try to keep things trim. The demo runs a simple counter.

The trick with the Adafruit display is understanding:
-- the HT16K33 uses 16 bits per character (only 8 are used in 7-segment displays)
-- the Adafruit module maps digit 2 to the colon, so we have code around this

BTW... the Prop-2 referenced in the program is the EFX-TEK Prop-2 controller, an industrialized BS2
-- http://www.efx-tek.com/topics/prop-2.html
Jon McPhalen
Hollywood, CA
It's Jon or JonnyMac -- please do not call me Jonny.

Comments

  • How would I adjust this if I want to use all fourteen segment displays instead of the usual 7 segments?
  • You just have to map you segment patterns into the appropriate HT16K33 registers.
    Jon McPhalen
    Hollywood, CA
    It's Jon or JonnyMac -- please do not call me Jonny.
Sign In or Register to comment.