- Programming the BeagleBone
- Yogesh Chavan
- 216字
- 2021-07-23 14:36:48
Chapter 3. Blinking External LEDs
In the previous chapter we programmed onboard LEDs on BeagleBone using BoneScript APIs. As BeagleBone is an embedded device, it can be used in an environment where a keyboard, mouse and monitor might not be available. Rather, most of the times embedded boards do not have these devices. Typical input and output components of embedded boards are LEDs and push-buttons. LEDs can be used as the output device to represent information, for example the board may turn an LED on when there is high system load and turn it off when the system load is low. So, by looking at LEDs we get information about if the system is under high load or not. That is why it is important to program LEDs on BeagleBone so that we can send information as output via LEDs where the monitor is absent. In this chapter, we will continue to program LEDs. We will connect external LEDs and blink them using our BoneScript program. To achieve this, we need to learn about GPIO on BeagleBone.
Here are the topics that will be covered in this chapter:
- What is GPIO?
- BeagleBone GPIO map
- Blinking external LED circuit setup
- Program to blink external LED
- Dancing external LEDs circuit setup
- Program to dance external LEDs
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- 數據庫原理及應用(Access版)第3版
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- Troubleshooting PostgreSQL
- 細說Python編程:從入門到科學計算
- Android應用開發深入學習實錄
- Red Hat Enterprise Linux Troubleshooting Guide
- UX Design for Mobile
- Mudbox 2013 Cookbook
- Xamarin Cross-Platform Development Cookbook
- Python物理建模初學者指南(第2版)
- 微信小程序開發邊做邊學(微課視頻版)
- Visual FoxPro數據庫程序設計
- 小學生Python創意編程(視頻教學版)
- HTML5與CSS3權威指南(第2版·下冊)