- 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
- Django+Vue.js商城項目實戰
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Cassandra Data Modeling and Analysis
- Securing WebLogic Server 12c
- Apache Mesos Essentials
- Learning Python by Building Games
- 大模型RAG實戰:RAG原理、應用與系統構建
- Deep Learning with R Cookbook
- SAP Web Dynpro for ABAP開發技術詳解:基礎應用
- 金融商業數據分析:基于Python和SAS
- AngularJS UI Development
- 軟技能2:軟件開發者職業生涯指南
- Manage Your SAP Projects with SAP Activate
- Analytics for the Internet of Things(IoT)
- Web前端開發精品課:HTML5 Canvas開發詳解