Skip to Main Content
Programming the BeagleBone Black: Getting Started with JavaScript and BoneScript
book

Programming the BeagleBone Black: Getting Started with JavaScript and BoneScript

by Simon Monk
May 2014
Beginner to intermediate content levelBeginner to intermediate
216 pages
4h 23m
English
McGraw-Hill Education TAB
Content preview from Programming the BeagleBone Black: Getting Started with JavaScript and BoneScript
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK

IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK

Peter Hoddie, Lizzie Prader
BeagleBone: Creative Projects for Hobbyists

BeagleBone: Creative Projects for Hobbyists

Charles Hamilton, Rodolfo Giometti, Richard Grimmett

Publisher Resources

ISBN: 9780071832120