Author Topic: Programming in Basic  (Read 2343 times)

Camerart

  • NewMember
  • *
  • Posts: 9
  • Country: gb
Programming in Basic
« on: October 03, 2016, 05:40:26 AM »
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

  • Hero Member
  • *****
  • Posts: 1300
  • Country: us
Re: Programming in Basic
« Reply #1 on: October 03, 2016, 12:57:08 PM »
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.
« Last Edit: October 03, 2016, 12:59:56 PM by WhiteHare »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Programming in Basic
« Reply #2 on: October 03, 2016, 01:01:05 PM »
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

  • Hero Member
  • *****
  • Posts: 873
  • Country: gb
Re: Programming in Basic
« Reply #3 on: October 03, 2016, 01:17:45 PM »
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

  • Sr. Member
  • ****
  • Posts: 419
  • Country: us
Re: Programming in Basic
« Reply #4 on: October 06, 2016, 04:28:29 PM »
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.
« Last Edit: October 06, 2016, 09:46:53 PM by ChemE »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Programming in Basic
« Reply #5 on: October 06, 2016, 05:00:30 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

  • NewMember
  • *
  • Posts: 9
  • Country: gb
Re: Programming in Basic
« Reply #6 on: October 22, 2016, 07:03:06 AM »
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

  • Jr. Member
  • **
  • Posts: 80
  • Country: au
Re: Programming in Basic
« Reply #7 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 ?

Camerart

  • NewMember
  • *
  • Posts: 9
  • Country: gb
Re: Programming in Basic
« Reply #8 on: October 23, 2016, 06:25:01 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

  • Jr. Member
  • **
  • Posts: 80
  • Country: au
Re: Programming in Basic
« Reply #9 on: October 23, 2016, 06:37:02 AM »
No, just a general analogy :)