Community
cancel
Showing results for 
Search instead for 
Did you mean: 
DDinh7
Novice
1,865 Views

Function digitalRead(2) on IDE for Intel Galileo

Hi everybody.

I tried to test function digitalRead on IDE for Intel galileo kit within 0, 1, 2, 3, 10, 11, 12, 13 pins, but they don't work. I used serial to print value button and the result is the image following. Can you help me. Thanks in advance.

0 Kudos
5 Replies
FTinetti
Honored Contributor I
58 Views

Hi DatDinh,

What do you have on each pin (pin 2 in the pictures you included in your post)?

Is there any reason for using INPUT_PULLUP instead of INPUT?

Fernando.

DDinh7
Novice
58 Views

Hi FGT.

I also tried to test on pin 2 with mode INPUT but It also didn't work. However when I run mode OUTPUT, it worked. As well as with the other pins 0, 1, 3, 10, 11, 12, 13. I use pin 2 because I want to use external interrupt to share data between arduino IDE with node js on Intel Galielo. But the interrupt didn't work because data read from pin 2 is wrong when I push button and don't push , it forever is Zero .

FTinetti
Honored Contributor I
58 Views

I see...

Please post your wiring as well as the button model/hardware, with a picture, if possible.

Also, take into account that there are other methods to share information, e.g. pipes.

Fernando.

DDinh7
Novice
58 Views

Hi FGT.

Thanks for your help. The truth my kit is IO error(pin 0, 1, 2, 3). I tried it with the other and the result is good.

idata
Community Manager
58 Views

Is your issue resolved? If you believe some IO pins are not working as they should you can fill this form here so we can take a closer look to your case https://customercare.intel.com/?lang=en-US https://customercare.intel.com/?lang=en-US

 

 

-Sergio

 

Reply