User manual
Ausgabe 07.12.2016 Copyright by Joy-IT 5
3
RPi - Explorer700
4. LED sample programs - Changing the LED status
bcm2835 program:
Open the Linux terminal and enter to the corresponding path and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result: The LED1 is blinking.
Press the keys Ctrl+C to end the program.
wiringPi program:
Enter the Linux terminal, and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result: The LED1 is blinking.
Press the keys Ctrl+C to end the program.
Enter the Linux terminal, and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result: The brightness of the LED1 is changing gradually.
Press the keys Ctrl+C to end the program.
pi@raspberrypi ~/Explorer700/LED/wiringPi $ sudo ./led
pi@raspberrypi ~/Explorer700/LED/wiringPi $
pi@raspberrypi ~/Explorer700/LED/bcm2835 $ sudo ./led
pi@raspberrypi ~/Explorer700/LED/bcm2835 $ make
pi@raspberrypi ~/Explorer700/LED/wiringPi $ sudo ./pwm
pi@raspberrypi ~/Explorer700/LED/wiringPi $