O'Reilly logo

Programming the BeagleBone Black: Getting Started with JavaScript and BoneScript by Simon Monk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required