Skip to content

A school project to demonstrate how to use the GPIO Pins on your Raspberry Pi 4B.

Notifications You must be signed in to change notification settings

KingerNL/RaspberryPi_GPIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Hva_Raspberry

This is a little project in did on how to connect hardware to your Raspberry Pi with the help of a library called: Bcm2835.

I used Bcm2835 over some more high level Library's like WiringPi because I didn't feel the need for importing a whole set of function and actually don't know what I'm doing. It's like programming on an Arduino, not that you can't use the library for my application. In fact i think it's easier to program this with higher level library's because how simple this application is.

I acknowledge the fact that this code isn't the fastest or optimally made. This was never the intention of the project. It's for a niche group of people wondering how to use the GPIO pins on your Raspberry without changing the C++ language to much. Also, this can easily be written in C. With a couple of changes, for instance the Threating library is c++ only. Just use the pthreads library for that.

All the comments are in Dutch, sorry if you thought it would be an easy read. Don't know if i said this already, but all the Library's u need can be found in the windows.hpp folder. It's in the comments of main too, you can find there every command you need to run too. I used an Imager for all the correct settings. So if you want that one, just msg me. Ohh, you made it through the end ey? here are the correct GPIO pins corresponding with the bcm2835 library pins as your reward (it's also in the hardware.hpp file):

image


At last i want to credit some people for helpinh me with the code, maybe i look smart but I couldn't have done this without some people, so here it goes:

  • Casual Coder For learning more about ncurses, he has a great video on building snake into your terminal.
  • The Cherno For learning more about the basic concepts of c++, great channel to learn more about C++.
  • Saldina Nurak Also for basic concepts on c++, easy to follow and has great video's on threats, basic file structures and more.
  • Edwin Boer. He is my teacher and helped me a ton with basic understanding of c++ & general computer logic. Can't thank him enough.

About

A school project to demonstrate how to use the GPIO Pins on your Raspberry Pi 4B.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published