Skip to content

natarajmb/rpi-gpio-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPI GPIO Samples

This is a sample project created to learn about Raspberry Pi GPIO using Rust embedded. Project code is targeted for Raspberry Pi 2B+ but should work with later once as well. One of the takeaways if you have reached here is one way to set up Rust cross compile as authoring is done on macOS while target platform is armv7.

Assumptions

  • You have working Raspberry Pi
  • Have a working password-less login between your macOS and Raspberry Pi
  • macOS has a working Docker installation

How to run

The target for the binary application is Raspberry Pi and also it's easier to source the cross compile tooling on linux environment. Hence, the code compile happens in a container based environment and finally the built binary is copied to the target Raspberry Pi.

make start-env
make build
make copy-bin

Troubleshooting tips

  • Check if pin numbering you are using in code is correct, pinout site comes in handy
  • Rule out hardware issues use gpiotest script to test correctness of hardware. Script requires pigpio library.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published