Search found 15 matches
- Feb 26, 2015 13:15
- Forum: Beginners
- Topic: Raspberry GPIO and wiringPi. Is it possible?
- Replies: 8
- Views: 2095
Re: Raspberry GPIO and wiringPi. Is it possible?
I have created a wiringPi.bi and a DRCSerial.bi from running all the headers (probably wrong to do *.h) through fbfrog, but when I include the library into my program I get duplicated definition errors. These occur whether I try to compile direct on the RPi using FB or on my desktop with Geany. Load...
- Feb 25, 2015 21:22
- Forum: Beginners
- Topic: Raspberry GPIO and wiringPi. Is it possible?
- Replies: 8
- Views: 2095
Re: Raspberry GPIO and wiringPi. Is it possible?
Thanks again.
I'd already found the h_2_bi and already given up as it seemed poorly documented in the location I found it. fbfrog on the other hand looks much better documented and well worth a go even though I suspect I'll be wading into the deep-end.
I'd already found the h_2_bi and already given up as it seemed poorly documented in the location I found it. fbfrog on the other hand looks much better documented and well worth a go even though I suspect I'll be wading into the deep-end.
- Feb 25, 2015 20:20
- Forum: Beginners
- Topic: Raspberry GPIO and wiringPi. Is it possible?
- Replies: 8
- Views: 2095
Re: Raspberry GPIO and wiringPi. Is it possible?
Worked a treat. Funny that the white space did not appear to be in the help info after building the wiringPi library. Now all I have to do is find out how to create "wiringPi.bi" which does exist after installing the wiringPi library. I read somewhere on the forum there is a .bas utility t...
- Feb 25, 2015 15:22
- Forum: Beginners
- Topic: Raspberry GPIO and wiringPi. Is it possible?
- Replies: 8
- Views: 2095
Raspberry GPIO and wiringPi. Is it possible?
Hi, I'm trying to access the GPIO on a Rasberry Pi using Freebasic. As I understand it there are no native commands to carry out the direct control of the IO on the Pi. On searching the internet there seem to be very few options with FB except possibly wiringPi which I have installed and tested ok. ...
- Feb 23, 2015 16:52
- Forum: Beginners
- Topic: Date and Time math
- Replies: 3
- Views: 825
Re: Date and Time math
Had a look and it explains a lot. Pity I didn't find it earlier.
Thanks
Thanks
- Feb 23, 2015 15:56
- Forum: Beginners
- Topic: Date and Time math
- Replies: 3
- Views: 825
Re: Date and Time math
I think I've just answered it for myself having revisited DateAdd.
I shall have a play with the function and see if it's feasible to do what I want.
Cheers
I shall have a play with the function and see if it's feasible to do what I want.
Cheers
- Feb 23, 2015 15:33
- Forum: Beginners
- Topic: Date and Time math
- Replies: 3
- Views: 825
Date and Time math
Hi, Can someone explain what is possible in the line of calculation with Time variables. For instance, is it possible to add say 45 minutes to a time and return a time value which can be used elsewhere, sort of; new_time = now +(45 minutes) IF (a_different_time - new_time) == (45 minutes) THEN ........
- Feb 20, 2015 20:37
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
A very useful version, thanks.
Whether it will help me is another question. It will be interesting to compare it with mine.
Whether it will help me is another question. It will be interesting to compare it with mine.
- Feb 20, 2015 18:28
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
Many thanks for that, I definitely need some practice. The code had so many integer, double and single symbols strewn through it that I could not determine the type for new local variables and whether some had a global scope. Also, the code is difficult to decipher with no indentation at all. My mod...
- Feb 20, 2015 9:40
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
@dodicat I was struggling a bit last night so I left the code. This morning I tried to run the compiled code but got some errors referring to line numbers and function names which seemed strange. Then I suddenly realised i was trying to run the QB text file and the compiler had created a file withou...
- Feb 19, 2015 21:57
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
@dodicat I am p*$@ed off, ... you've looked at the code accepted all the $%!# in the statements and got it running. My hat is off! The mjd thing mystified me because it looked like a global variable being used as a function label but it wasn't that obvious to me. You've left the function declaration...
- Feb 19, 2015 21:14
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
PS I forgot to mention I don't understand the repeated
DEFSNG A-Z
and
DEFDBL A-Z
which occurs in various places, are they global definitions?
DEFSNG A-Z
and
DEFDBL A-Z
which occurs in various places, are they global definitions?
- Feb 19, 2015 21:09
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
Well, I did all the editing I could see and reduced the errors to these few (no doubt they may increase if I solve the problem with these) the compiler errors are now no longer too many to deal with but remain as /home/pi/Freebasic/riset.bas(13) error 4: Duplicated definition DECLARE SUB quad (ym AS...
- Feb 19, 2015 19:01
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Re: Error 47 undefined label
Superquick reply. Many thanks. I started to come to the same conclusion and altered the script BACK to funcname=xxx from the Return xxxx that it was and the errors are altering. I'll finish the task and report back later ... food calls. Shame I tidied the original up so much as I came across the -la...
- Feb 19, 2015 12:40
- Forum: Beginners
- Topic: Error 47 undefined label
- Replies: 11
- Views: 1242
Error 47 undefined label
Hi, After many years away from programming I decided to return to it using Freebasic as I sort of hoped that it would compile QB45 code relatively easily. I chose a program which predicts sunrise/sunset time in QuickBasic for a project I fancy on the Raspberry After much editing I came to the undefi...