EasyManua.ls Logo

ADEEPT Ultimate Sensor Kit for Raspberry Pi - Page 16

ADEEPT Ultimate Sensor Kit for Raspberry Pi
151 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Step 3: Open the file led.py with vim or nano
$ sudo vim led.py
Write the following source code, then save and exit.
Step 4: Run
$ sudo python led.py
Now you should see the LED blinking. Press Ctrl+C and the program
execution will be terminated.
For C language users:
Step 2: Create a file named led.c

Table of Contents