Need help first experience with a iot device
-
I finally got my new Onion omega So I can finally use it but as it's my fist experience coding for hardware (I mainly do software) I have not a clue what im doing lol.
I have a rgb led hooked up to my breadboard to the expansion dock with pin 0 being green pin 1 being blue and pin 6 being red I know fast-gpio set and fast-gpio read but Now how would I Set and read programiclly preferably in c++ I have taken a look at the i2c lib but if I use that what would the addresses be?
if this makes no sense sorry im drunk.
-
Howdy Chris,
Yep makes sense, no beer goggles required
No idea with C++ and the Onion I'm afraid.
I've come from being force-fed C with the arduino & derivatives, hoping someone else can chip in with an example!
Matt
PS. I'll happily whip together a tutorial for the Onion site if someone can provide a proof of concept.
-
Actually Chris, see Kit's comment here https://community.onion.io/topic/611/daft-question-2-running-c-code hopefully iy'll make more sense to you
Matt
-
I think I got it,
I updated the BravoPapa source to work with my layout which is way over complicated.https://github.com/Immortal-/OmegaGPIO/blob/master/gpio_demo.py the updated code.