Hi-
I would like to add an I2C display (like adafruit https://www.adafruit.com/product/181 or 292)to my Circuit Playground Express and then program it using MakeCode. Has this been done? Is there some example code we could look at?
I also will want to add a temperature sensor (off-board), so that is another I2C communication we want to work out. If there is a good example we could follow, that would be great.
I've done lots of I2C in Arduino (and frankly, at work in semiconductor labs), but I'm coaching some young kids and we're currently using Make:Code and Circuit Playground Express and the kids are REALLY benefitting from that environment. Such a super idea.
CPX I2C in MakeCode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- johnpark
- Posts: 985
- Joined: Wed Mar 25, 2009 2:15 pm
Re: CPX I2C in MakeCode
One place to start for i2c devices is the i2c blocks in the Advanced > Pins category in MakeCode.
This forum post explores dealing with an i2c sensor in some detail: https://forum.makecode.com/t/cpx-makeco ... ol/13004/2
This is an example of using an i2c display: https://makecode.adafruit.com/60036-71761-78224-81626
This forum post explores dealing with an i2c sensor in some detail: https://forum.makecode.com/t/cpx-makeco ... ol/13004/2
This is an example of using an i2c display: https://makecode.adafruit.com/60036-71761-78224-81626
Please be positive and constructive with your questions and comments.