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.
image
GPIO Connectors
The BeagleBone Black has ...

Get Programming the BeagleBone Black: Getting Started with JavaScript and BoneScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.