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.
FreeBASIC access to Rpi GPIO pins
-
- Posts: 3906
- Joined: Jan 01, 2009 7:03
- Location: Australia
Re: FreeBASIC access to Rpi GPIO pins
Last edited by BasicCoder2 on Aug 04, 2019 4:46, edited 4 times in total.
Re: FreeBASIC access to Rpi GPIO pins
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 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'
-
- Posts: 3906
- Joined: Jan 01, 2009 7:03
- Location: Australia
Re: FreeBASIC access to Rpi GPIO pins
@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.
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.