- Programming the BeagleBone
- Yogesh Chavan
- 163字
- 2021-07-23 14:36:46
Chapter 2. Blinking Onboard LEDs
In the previous chapter, we learned about the Cloud9 IDE that comes preinstalled on the BeagleBone standard Debian distribution. It also comes with the preinstalled BoneScript library. This library provides you functions to communicate with various electronic components that can be connected to BeagleBone. These components can be LEDs, buttons, buzzers, various sensors, motors, and others. Connecting external components to BeagleBone needs some manual work such as attaching jumper wires, soldering, or using breadboard. This can be tedious for a new user. Fortunately, BeagleBone comes with four onboard LEDs. We can directly program them without doing any manual connection. In this chapter, we will blink onboard LEDs by our program using BoneScript functions.
The following topics will be covered in this chapter:
- Digital I/O
- Digital I/O functions –
pinMode()
anddigitalWrite()
- Program to turn onboard LED ON and OFF
- Quick program to blink onboard LED
- Make our program better
- Dancing LEDs
- Dancing LEDs in both directions
- Learning Chef
- Python數據可視化:基于Bokeh的可視化繪圖
- Object-Oriented JavaScript(Second Edition)
- Python Network Programming Cookbook(Second Edition)
- Learning DHTMLX Suite UI
- QlikView Unlocked
- Application Development with Parse using iOS SDK
- HTML5移動前端開發基礎與實戰(微課版)
- Mastering JavaScript
- Mastering Leap Motion
- Java Web應用開發
- 循序漸進Vue.js 3前端開發實戰
- 生成藝術:Processing視覺創意入門
- PHP程序設計經典300例
- Learning RxJava