FreeBASIC access to Rpi GPIO pins

User projects written in or related to FreeBASIC.
BasicCoder2
Posts: 3397
Joined: Jan 01, 2009 7:03

Re: FreeBASIC access to Rpi GPIO pins

Postby BasicCoder2 » Aug 03, 2019 1:03

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: 1369
Joined: Feb 26, 2007 5:32

Re: FreeBASIC access to Rpi GPIO pins

Postby caseih » Aug 03, 2019 3:18

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: 3397
Joined: Jan 01, 2009 7:03

Re: FreeBASIC access to Rpi GPIO pins

Postby BasicCoder2 » Aug 03, 2019 4:50

@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.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 4 guests