Hardware Reference
In-Depth Information
Solution
We'll attack this problem in two steps. This recipe will show how to use an external web-
site (jsfiddle [ http://jsfiddle.net/ ]) to read a GPIO pin on the Bone (yup, an external site can
read the GPIO pins on the Bone). Recipe 6.6 will show how to move the code to run locally
on the Bone.
To make this recipe, you will need:
▪ Breadboard and jumper wires (see “Prototyping Equipment” )
▪ Pushbutton switch (see “Miscellaneous” )
▪ 10 kΩ trimpot (variable resistor) (see “Resistors” )
jsfiddle is a website that lets you fiddle with JavaScript. It's best introduced by an example.
Point your browser to jQuery example , and you will see the screen shown in Figure 6-4 .
Search WWH ::




Custom Search