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

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
主站蜘蛛池模板: 藁城市| 犍为县| 宁强县| 双流县| 安庆市| 徐汇区| 宝清县| 甘洛县| 铅山县| 新巴尔虎右旗| 永州市| 白水县| 麟游县| 芜湖市| 枝江市| 多伦县| 沧州市| 道孚县| 迭部县| 张家界市| 乌兰察布市| 铜山县| 鄂州市| 萍乡市| 南和县| 明溪县| 马龙县| 南开区| 辽阳县| 扬中市| 保康县| 汉寿县| 阳山县| 双牌县| 锡林郭勒盟| 漾濞| 文水县| 崇明县| 马公市| 威信县| 苗栗县|