6
BoneScript
You could use the BeagleBone Black and JavaScript without ever using the GPIO connections, but you would miss out on the full BeagleBone Black experience. In this chapter, you will get to grips with the nuts and bolts of the GPIO connectors and see how to use BoneScript to read and write to the GPIO pins.
BoneScript is the JavaScript module that allows us to control the GPIO pins and the built-in LEDs of the BeagleBone Black. In Chapter 4 you used this library to control the built-in LEDs by using digitalWrite. You can also read digital inputs, read analog inputs, and write analog outputs.
GPIO Connectors
The BeagleBone Black has ...