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

Mission briefing

In this project, we will set up the GPIO (General Purpose Input Output) peripheral on the Raspberry Pi and write our first program to cause an LED to blink. At the end, we will repeat the same steps with a Raspberry Pi add-on board called PiCrust. This will allow you to get your feet wet and ensure you have all the right tools going forward, and should you need to, troubleshoot any problems you might identify.

Why is it awesome?

Think of saying "Hello World" as both a nod to programming tradition and a dry run to ensure you are well equipped!

Your Hotshot objectives

The objectives for this mission are quite simple, and yet take us all several milestones further! Here are the objectives of the Hello World mission:

  • Collect all the necessary tools
  • Set up the GPIO peripheral
  • Introduce ourselves to the Raspberry Pi environment
  • Turn a light emitting diode (LED) on and off with a 1 second delay

Mission checklist

Go over the previous sections, and make sure you have all the tools. Download the GPIO libraries, and ensure you can log in to the Raspberry Pi remotely, and you are all set!

Note

There are two different ways to use a Raspberry Pi. They are:

  • Connecting a monitor to the HDMI port or the RCA jack and a keyboard to the USB port of the Raspberry Pi.
  • Remotely logging into the Raspberry Pi from the reader's workstation.

If you are a beginner, it is best to use the first method while the second method can be used if you are familiar with the Linux operating system and remote login capabilities.

Once we complete the setup process by selecting Finish, the Raspberry Pi reboots and expands the file system if necessary.

主站蜘蛛池模板: 无锡市| 临沭县| 高邑县| 海口市| 北票市| 星子县| 阳朔县| 镇雄县| 德格县| 噶尔县| 图木舒克市| 五常市| 大同市| 满城县| 三原县| 三都| 亚东县| 麻栗坡县| 札达县| 金塔县| 昌宁县| 永州市| 临猗县| 蒲城县| 土默特左旗| 库尔勒市| 民乐县| 拉萨市| 南投市| 裕民县| 四会市| 岐山县| 吉水县| 新野县| 沧州市| 丹棱县| 读书| 烟台市| 新邵县| 万山特区| 明星|