Chapter 3. Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
Now that you're armed to the…er, fingertips with your Linux commands and can happily control your BeagleBone Black remotely like a pro, it's time to get physical with the board. So, to begin with our exercises in physical computing, we're whipping up some essential recipes on the following topics:
- Controlling external LEDs
- Using buttons – button press function
- Using analog sensors
- Variable resistance sensor – photocell
- Using motors
Our programming language of choice will principally be JavaScript in tandem with BoneScript, which is a Node.js and browser-side library. We will also include or reference a few Python script analogues to broaden our skills with the hardware.