FreeBASIC access to Rpi GPIO pins

For issues with communication ports, protocols, etc.
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: FreeBASIC access to Rpi GPIO pins

Post by BasicCoder2 »

So over a year later and a renewed interest in the Rpi I decided to give it a try.

EDIT: Deleted code and image as there were serious errors making them useless.
Last edited by BasicCoder2 on Aug 04, 2019 4:46, edited 4 times in total.
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: FreeBASIC access to Rpi GPIO pins

Post by caseih »

BasicCoder2 wrote:Using the code example below I get this error?
blinkLedRpi.bas(18) error 42: Variable not declared, outout in 'open "/sys/class/gpio/gpio29/value" for outout as #hFile'
Looking closely at that error message, the problem is that you spelled output wrong (outout). But that is a bit weird of an error message for this. The parser seems to have tried to match your statement against one of the other forms of the "open" statement I guess, and failed.
BasicCoder2
Posts: 3906
Joined: Jan 01, 2009 7:03
Location: Australia

Re: FreeBASIC access to Rpi GPIO pins

Post by BasicCoder2 »

@caseih,
Well spotted. Thanks. I was also using pin 40 (gpio 21)
The code compiles now (see first post) but doesn't turn on the LED so I have some more work to do.
Deleted first post because its errors and will repost if/when I get it right.
Post Reply