Working with some young ladies in 8th grade on some wearables with CP Express. We are all pretty much newbies.
Trying to interface the .56" 7 segment backpack to the CPE. (P1002)
I understand using pins A4 and A5 for data and clock. Also backpack is hooked up to VOUT and GRND (3AA from lunchbox kit)
I am using using the i2c write number block command in MakeCode and I have reviewed the reference library.
Have verified voltage to the + and - on the backpack and even some voltage on the D and C i2c pins referenced to ground but no LED segments light.
Questions:
Is the address format in the i2c write command block hex(70) or (112) decimal?
I have tried both but no response.
My demo program only contains a forever command block surrounding the i2c write number command
I am using the value 1234 in format Int16LE with repeat "true"
Not sure where I am having problems.
Suggestions?
CIrcuit playground express i2c with MakeCode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- msdrastal
- Posts: 5
- Joined: Thu Nov 20, 2014 11:25 am
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CIrcuit playground express i2c with MakeCode
Those i2c commands are low level and are used to send raw information to the connected i2c device. So when it says "write number" it's not really for displaying a number on the 7 segment backpack. Some form of a driver would need to be written so you could use the 7 segment backpack in MakeCode. Unfortunately, I don't think there is one yet.My demo program only contains a forever command block surrounding the i2c write number command
- msdrastal
- Posts: 5
- Joined: Thu Nov 20, 2014 11:25 am
Re: CIrcuit playground express i2c with MakeCode
Is there some demo code we could use in Javascript?
Can I use some other language/compiler and still use a CIrcuit Playground Express?
Can I use some other language/compiler and still use a CIrcuit Playground Express?
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CIrcuit playground express i2c with MakeCode
You can use it with CircuitPython:
https://learn.adafruit.com/micropython- ... cuitpython
or Arduino:
https://learn.adafruit.com/adafruit-led ... k-firmware
There are libraries available for both of those that let you use the displays without having to worry about the low level i2c comms. See those guides for details. Will one of those work for you? (we generally recommend circuitpython for people stepping up from makecode)
https://learn.adafruit.com/micropython- ... cuitpython
or Arduino:
https://learn.adafruit.com/adafruit-led ... k-firmware
There are libraries available for both of those that let you use the displays without having to worry about the low level i2c comms. See those guides for details. Will one of those work for you? (we generally recommend circuitpython for people stepping up from makecode)
Please be positive and constructive with your questions and comments.