1 of 1 people found this helpful
I suggest you try first using the console as briefly explained at Re: MRAA not working (take a look at the first Pablo reply) so you don't have to compile, and later to include your findings in your .c code once you know you are doing what you need.
I'll try to find some more information on this, since I've not done it before. Maybe you can look for similar threads in this forum too.
Edit: there are several other threads, but they refer to Intel Galileo, not Intel Galileo Gen2, and I think pin numbers are different... Re: Programming GPIO Ports From Linux
This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
Do you have any updates about this? Do you still have issues?
The reply from FGT is very helpful, please check it and let us know if it works.
Have a nice day.
Thank you. I have the Galileo Gen 2 reading from the 1 or 0 listed by accessing the files corresponding to the "value" files for the GPIO pins. I found some commands from this link Intel Galileo - Programming GPIO From Linux - Malinov Family Web Presence
root@clanton:~# echo -n "1" > /sys/class/gpio/gpio27/value
root@clanton:~# echo -n "0" > /sys/class/gpio/gpio27/value
Now my issue is get the timing correct so I am able to use the Galileo to interface with a PIC16F18857. I want the Galileo to send a message (using the GPIO pins and a "strobe signal" to the PIC and then have the PIC send a message back (using the same GPIO pins). It seems that I may have a timing issue; because when I set the Galileo GPIO pins to write (OUTPUT) then send a message and then wait for a reply message(INPUT) from the PIC the messages fail. I think there is a timing issue I need to figure out so I know for certain that the Galileo and PIC are in read or write modes at different times.
I'll try to get the code that I'm using posted for review soon.
Thank you for you help,