User Manual

47
For C language users:
Step 2: Open the code file
cd /home/pi/SunFounder_Super_Kit_V3.0_for_Raspberry_Pi/C
Note: Use the cd command to switch to the code path of this experiment.
Step 3: Compile the Code
gcc 03_8Led.c -o 03_8Led -lwiringPi
or
make 03_8Led
Note: gcc is a linux command which can realize compiling and generating the C language
program file 03_8Led.c to the executable file 03_8Led.
make is a linux command which can compiling and generating the executable file
according to the rule inside the makefile.
Step 4: Run the executable file above
sudo ./03_8Led
Note: Here the Raspberry Pi will run the executable file 03_8Led compiled previously.
SunFounder