官术网_书友最值得收藏!

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
主站蜘蛛池模板: 绥中县| 华亭县| 南召县| 青田县| 新宾| 新乡县| 遵化市| 江川县| 临夏县| 霍山县| 雅安市| 廊坊市| 奉节县| 盖州市| 长泰县| 定边县| 郓城县| 印江| 新巴尔虎右旗| 丰台区| 瓦房店市| 汉寿县| 青川县| 东乌珠穆沁旗| 邵阳县| 喀喇| 桃园市| 镇远县| 乌什县| 中卫市| 综艺| 平乐县| 潜江市| 德兴市| 鄂托克前旗| 广饶县| 新昌县| 张掖市| 连平县| 荃湾区| 平邑县|