Table of Contents

Introduction

When learning a new programming language, the first code you write typically displays the phrase "Hello World" on the screen. When learning how to use a new board like the TINKERplate, the first example is typically to blink an LED. So, in keeping with tradition, we will blink the small green LED on the front edge of the TINKERplate for our first project.

What You'll Need

  1. A TINKERplate connected to a programmed Raspberry Pi
  2. A connection to your Raspberry Pi - either through a monitor and keyboard or remotely with VNC or SSH

Steps

  1. Bring up a terminal window on your Raspberry Pi:
  2. Use the Raspberry Pi's built in text editor nano and enter the following code:
  3. Save your program as LEDblink.py by pressing <CNTL>O and typing in the name. The press <CNTL>X to exit nano.
  4. Now back at the command line type python3 LEDblink.py and hit <ENTER>
  5. Now watch the little green LED on your TINKERplate blink 100 times.
  6. Give yourself a pat on the back for writing your first program.

Here's the code again in case you would prefer to copy and paste it:

The above code can be downloaded from github by typing the following instructions on the command line:

  1. git clone https://github.com/pi-plates/TINKERplate-Projects.git
  2. cd TINKERplate-Projects
  3. python3 LEDblink.py
Series NavigationDisplaying Data with a Virtual Meter >>