Shop OBEX P1 Docs P2 Docs Learn Events
Adafruit I2C Backpack Control from BS2 — Parallax Forums

Adafruit I2C Backpack Control from BS2

JonnyMacJonnyMac Posts: 8,926
edited 2016-12-28 00:43 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

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.
Sign In or Register to comment.