I think your code has no problem.
Did you complete to upload your sketchbook?
Could you see the message of "Transfer complete" in the IDE's message area?
Hi thanks for answer.
Yes, i see "Transfer complete" and when i use the blink exemple (led 13 ligth each second) it's work, so i don't understand why it doesn't work with the grove button
in a comment to your code you mention you put the button to "D3". Also the image seems to indicate the latter.
However, your sketch seems to look for D2?
yes sorry, i several test before take the photo.
Sorry my test were D2 not D3
My code work perfectly.
But my led light when i push the pin (cf. photo 1 & 2) with my finger.
Why the led need my electric since my finger ? The board doesn't send electricity in my led ?
And my button doesn't work the led 13 (in the board) only my grove led (with my finger )
After reflash (ublinux)
All are working ...
Thanks and sorry
After to have reflashed (ublinux), the arduino code who interact whit arduino pack "Grove Starter Kit" worked.
But after to have installed :
- Logitech Media Server
- wifi + root script
- squeezelite + root script
- try to install bluetooth (bug : Re: Bluetooth ubilinux)
When the push to arduino code who interact with Grove Starter Kit, my button and led itsn't work and i don't understand why ...
however i don't change my code who working before ... I return the same bug that first post except when I push the blink example (01 Bascis -> Blink). it work, my led 13 is blinking.
Intel edison has a log for arduino when it is executed and pushed ?