The tutorial is based on connecting LEDs to the Raspi using a breadboard and the code uses wiringPi to blink the LEDs. This is working without any issues and the code used (main.c and wiring.h) is attached for reference.
Now, I am trying to use the GrovePi LED and other sensors instead of connecting to the regular LED via breadboards, etc. However, I’m unsure what changes I need to make to the code to get this to work. Henvce, my original question about how we can access GrovePi sensors directly (i.e. without using the GrovePi api).
Everyhting works fine and LED blinks when connected via breadboard and using the attached code files. But not working if I plug in the GrovePi LED instead.
The longer answer is that moving from GPIO control of sensors and inputs is going to be a little different than copying over the code directly. The GrovePi sits between the Raspberry Pi and sensors/LEDs and takes commands from the Pi using I2C.