rwaldron / johnny-five

JavaScript Robotics and IoT programming framework, developed at Bocoup.
http://johnny-five.io
Other
13.3k stars 1.77k forks source link

hi everybody #212

Closed xhava closed 11 years ago

xhava commented 11 years ago

HI SOMEONE COULD GIVE ME ANY IDEA ABOUT HOW CAN I PRESS A BUTTON IN A WEB page and with this action , turn on a led with arduino and johnny-five.

please im very interesting in this but i really like to learn about javascript and arduino and nodejs thanks

third commented 11 years ago

I created a quick project that does this thing during the Nodebots day.

The idea is, onkeydown/onkeyup, an AJAX request is made and sends a parameter that will TURN ON/OFF the LED.

I have published my code if you want to get some reference.

https://github.com/third/Blink-LED

third commented 11 years ago

Btw, since you are using a button to turn on the LED, bind the appropriate AJAX call to the button's onclick event.

xhava commented 11 years ago

A lot of thanks @third i appreciate ur help