Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to TinyBasic #33

Open
Volhout opened this issue Feb 16, 2018 · 5 comments
Open

Added functionality to TinyBasic #33

Volhout opened this issue Feb 16, 2018 · 5 comments

Comments

@Volhout
Copy link

Volhout commented Feb 16, 2018

dear BleuLama,

I added (over the last years) functionality to your tinybasic.
Maybe you want to look at it and add this to your build (I am not planning my own repository).
Please find the code at: https://drive.google.com/open?id=1pI16iXnYMfVHf-DZn9ZWRupsfPwg4KOA

Added:

  • 2 servo support on UNO pin 9 and 10 (used PWMServo lib because it is not very memory hungry).
    and from MEGA at pins 11,12,and 13 (3 servo's). These run autonomous, need no CPU support.
    "SERVO pin, value" , and "NOSERVO pin". As long as one servo is active, AWRITE is not supported.
  • keyword abbreviation. Makes code less readable, but more compact.
    i.e. "DWRITE" can be abbreviated to "DW. And "PRINT" to "P."

Regards,

Volhout (Harm)
[email protected]

@Volhout
Copy link
Author

Volhout commented Jun 4, 2018

dear BlueLlama,

I have updated your tinybasic again, fixed 2 bugs, and added some commands for robotics.
https://github.com/Volhout/TinyBasicPlus

Regards,

Volhout

@BleuLlama
Copy link
Owner

Hello. I finally have gotten to this ticket. Sorry about the delay.

I really like your implementation of the SERVO command/code/ I'll integrate it soon.

One thing; I'd appreciate it if you change your version numbering somehow. Your project is based on 0.13 i believe? Please name it accordingly... 0.13.volhout.1 or something. please try to keep the mainline version numbers as the primary x.xx versions, to prevent confusion in the future. (ie, if someone has problems and sees yours as the "newest"... all of a sudden, you've gotta start supporting the whole thing. :o )

@Volhout
Copy link
Author

Volhout commented Jun 24, 2018 via email

@guruthree
Copy link
Contributor

  • store line numbers as INT, not in ASCII, that saves RAM, and should be easy to implement. Every \n is followed by an INT.

Do you mean line numbers at the starts of lines or line numbers used as part of GOTO GOSUB etc? Having just spent some time playing with how the code is stored in memory, line numbers at the start of lines are already stored as short ints.

(From line 1114 where the current input is pared, linenum = testnum(); reads in the line number but also moves the txtpos pointer forwards, to where characters start on the current line. Subsequently, *txtpos is moved back by three to overwrite the ASCII number with the short int number and the number of characters of text that make up the line.)

@Volhout
Copy link
Author

Volhout commented Jun 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants