User manual

Ausgabe 07.12.2016 Copyright by Joy-IT 7
3
RPi - Explorer700
5. Key sample programs
bcm2835 program:
Enter the Linux terminal, and run the following commands:
The command for compiling the program:
The command for execung the program:
Expected result:
Press the center key of the joysck, and the terminal will display the following informaon:
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 execung the program:
Key Test Program!!!!
KEY PRESS
KEY PRESS
KEY PRESS
pi@raspberrypi ~/Explorer700/KEY/wiringPi $ sudo ./key
pi@raspberrypi ~/Explorer700/KEY/wiringPi $
pi@raspberrypi ~/Explorer700/KEY/bcm2835 $ sudo ./key
pi@raspberrypi ~/Explorer700/KEY/bcm2835 $ make