Programming in Basic

Started by Camerart, October 03, 2016, 05:40:26 AM

Camerart

Hi,
I have just ordered some RFM69 modules.

I am limited to programming them in Basic, and hope to do this directly, e,g, via an FTDI serial adaptor.  Is there anyone who can give me tips in converting the Arduino, 'C' programs to basic please.  Any help will be appreciated.

Regards, Camerart.

WhiteHare

#1
In theory there might exist a cross compiler to convert C code into BASIC, but I think you'd find it far easier to just learn just enough C to get by.

Felix

Quote from: Camerart on October 03, 2016, 05:40:26 AM
I am limited to programming them in Basic, and hope to do this directly, e,g, via an FTDI serial adaptor.  Is there anyone who can give me tips in converting the Arduino, 'C' programs to basic please. 
Limited? How is that?

perky

A stronly typed language like C is far better IMO than a loosely typed language like BASIC for embedded coding, and the AVRs are well suited to running compiled C programs. I would bite the bullet and learn C. It may seem like a barrier to climb but it's not that difficult to learn enough to do simple coding, after all there's a whole community of Arduino programmers out there so it can't be that hard, right? ;-)
Mark.

ChemE

#4
If you can already speak BASIC it isn't that hard to learn to speak C.  Plus C has some really nice stuff that once you get used to having its absence in other languages will make you insane.  Can't tell you how many times I've typed i++ in VB only to have to replace it with the clunkier i =  i + 1.  As others have said learning C is as useful as knowing how to drive a manual car; a right of passage.

Felix

Quote from: ChemE on October 06, 2016, 04:28:29 PM
As others have said learning C is as useful and knowing how to drive a manual car; a right of passage.
+1 @ChemE
Nice analogy, could not a agree more!

Camerart

Hi,
I appreciate that most of you are able to learn new languages, and if I was starting again, I would learn C++, but sadly I can't.  Believe me when I say, I am unable to learn C++.  I am able to struggle along with Basic, which I started learning in the early 80s, and still struggle with sections that I've done 1000 times before, but I keep going :)

Since asking my first question, I am now able to load the SX1276 radio module with register settings at any address.
I now need to know how to change settings such as frequency etc, from the registry list.  So forget the language barrier, and please if anyone knows how to program these modules, please help.

I will start a new thread about this.
C.


raggedyanne

I do not remember my first computer (c64) coming with "C" , all the late seventies early eighties where "Basic". Anyone who has attempted any kind of first steps programing undoubtedly looked at "Basic" as their beginning. Basic may be below average, yet it is the language that helped people understand the "C" syntax. Only a small few can comprehend "C" on their first go and even lesser understand "ASM" on their first attempt. You might be able to drive a manual, but who taught you ?

Camerart

Quote from: raggedyanne on October 23, 2016, 06:10:51 AM
I do not remember my first computer (c64) coming with "C" , all the late seventies early eighties where "Basic". Anyone who has attempted any kind of first steps programing undoubtedly looked at "Basic" as their beginning. Basic may be below average, yet it is the language that helped people understand the "C" syntax. Only a small few can comprehend "C" on their first go and even lesser understand "ASM" on their first attempt. You might be able to drive a manual, but who taught you ?

Hi R,
Are you asking "Who taught me"?
C.

raggedyanne