EasyManua.ls Logo

ADEEPT Ultimate Sensor Kit for Raspberry Pi - Page 17

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...
$ sudo touch led.c
Step 3: Open the file led.c with vim or nano
$ sudo vim led.c
Write the following source code, then save and exit.
Step 4: Compile the code
$ sudo gcc led.c -lwiringPi
After the command is executed, you'll find a file named a.out appear in the
current directory. It is an executable program.
Step 5: Run

Table of Contents