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

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
主站蜘蛛池模板: 曲阳县| 揭阳市| 香港 | 丰城市| 舞阳县| 长岭县| 吐鲁番市| 社旗县| 雷山县| 邹城市| 临潭县| 绥芬河市| 永川市| 太谷县| 隆安县| 富源县| 车致| 建平县| 宁都县| 龙口市| 衡东县| 宁乡县| 萨迦县| 海淀区| 泾源县| 镇沅| 保德县| 文安县| 中西区| 武清区| 两当县| 扶风县| 武隆县| 衡南县| 沁阳市| 庆安县| 乌审旗| 平谷区| 山西省| 衡南县| 哈巴河县|