QB64 Phoenix Edition
Access GPIO pins on Raspberry via QB64 Shell command and raspi-gpio utility - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Works in Progress (https://qb64phoenix.com/forum/forumdisplay.php?fid=9)
+---- Thread: Access GPIO pins on Raspberry via QB64 Shell command and raspi-gpio utility (/showthread.php?tid=2821)



Access GPIO pins on Raspberry via QB64 Shell command and raspi-gpio utility - Rudy M - 06-24-2024

Hello,
I 'm new on this forum and I'm very happy there are a lot of programmers using QB64.

In the past I did a lot of programming with Basic PDS and ASM-routines of AJS (LA) (Multi-user access dbf files).
So I med a lot of manufacturing and color mixing software for paints.
Now retreated, I'm busy to make my own beer-brewing software (I want it good but not to complicated...).
I worked a little time with Freebasic, but it became quiet on their forum, so I switched to QB45

In freebasic I used the well-known WiringPi routines: https://projects.drogon.net/raspberry-pi/wiringpi/

In QB64 I did a lot of test to use c-libs for this purpose, but without 100% succes.

So at a moment I found the raspi-gpio utility (property of the RapsberryPI foundation).

In QB64 I did some test with the QB64 _hideSHELL command, and this works as I want it.

So I'm very glad to post my first test.

It runs on a non RaspberryPI pc, but in that case You see only the ON OFF prints on the screen.

Simple: A led connected to GPIO pin 17 of the RaspberryPI
And... swith ON or OFF with the + or - key.

On a RaspberryPI PC I use always a screw terminal p.e.:
https://www.amazon.com.be/-/nl/GeeekPi-Screw-Terminal-Raspberry-verlengkabel/dp/B08GKQMC72/ref=asc_df_B08GKQMC72/?tag=begogshpadd0d-21&linkCode=df0&hvadid=633363651826&hvpos=&hvnetw=s&hvrand=17724983812026697867&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=2056&hvtargid=pla-996593387015&psc=1&mcid=f16c2dc8499e300ea2b4671dfcb3c8ec&language=en_GB


Rudy M


RE: Access GPIO pins on Raspberry via QB64 Shell command and raspi-gpio utility - a740g - 06-25-2024

Welcome to the QB64-PE forums Rudy.

I hope to do some tinkering on the RPi 5 with QB64-PE. But, I have not had the time to sit and order a RPi for myself. Probably soon.

I am quite certain that there are some folks here who use QB64-PE on the RPi.