- 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
- Learning LibGDX Game Development(Second Edition)
- Power Up Your PowToon Studio Project
- Visual FoxPro 程序設(shè)計
- PyTorch自然語言處理入門與實(shí)戰(zhàn)
- Mastering Python High Performance
- SAS數(shù)據(jù)統(tǒng)計分析與編程實(shí)踐
- INSTANT Django 1.5 Application Development Starter
- Android項目實(shí)戰(zhàn):手機(jī)安全衛(wèi)士開發(fā)案例解析
- OpenMP核心技術(shù)指南
- ASP.NET Web API Security Essentials
- 深度實(shí)踐KVM:核心技術(shù)、管理運(yùn)維、性能優(yōu)化與項目實(shí)施
- 高性能PHP 7
- Raspberry Pi Robotic Projects
- Windows 10 for Enterprise Administrators
- Go語言編程之旅:一起用Go做項目