-
1Step 1
Download all the files
-
2Step 2
Test your IO ports with the scripts GPIO_on.sh, GPIO_off.sh and GPIO_in.sh
-
3Step 3
run detect_GPIO_BASE.sh to set the $GPIO_BASE environment variable
-
4Step 4
Read the example .c files (such as test_in_out.c), the header contains instructions to compile and run the file.
-
5Step 5
Reuse the example source code for your own program.
- don't forget to initialise the desired pins with PI_GPIO_config(pin_number, IO_mode);
- GPIO_SET_N(pin_number); set the selected pin
- GPIO_CLR_N(pin_number); clears the selected pin
- GPIO_LEV_N(pin_number); reads the selected pin
-
6Step 6
Share the code and the bug reports !
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.