- 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
- HTML5 移動(dòng)Web開(kāi)發(fā)從入門(mén)到精通(微課精編版)
- Hands-On Swift 5 Microservices Development
- 自制編程語(yǔ)言
- 劍指MySQL:架構(gòu)、調(diào)優(yōu)與運(yùn)維
- R Data Analysis Cookbook(Second Edition)
- Haskell Data Analysis Cookbook
- Python3.5從零開(kāi)始學(xué)
- 零基礎(chǔ)學(xué)Kotlin之Android項(xiàng)目開(kāi)發(fā)實(shí)戰(zhàn)
- Spring MVC+MyBatis開(kāi)發(fā)從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- Clojure for Machine Learning
- 微信小程序開(kāi)發(fā)邊做邊學(xué)(微課視頻版)
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)
- 計(jì)算機(jī)視覺(jué)實(shí)戰(zhàn):基于TensorFlow 2
- Spark for Data Science
- 軟件工程實(shí)用教程 (第3版)