Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access GPIO pins on Raspberry via QB64 Shell command and raspi-gpio utility
#1
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-S...uage=en_GB


Rudy M


Attached Files
.bas   LED ON OFF_qb64.bas (Size: 1.61 KB / Downloads: 35)
Reply
#2
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.
Reply




Users browsing this thread: 2 Guest(s)