552
edits
| Line 62: | Line 62: | ||
A simple text editor could also be used to edit and manipulate html text, stored on SD or SRAM - so that web pages could be locally edited and then displayed on a browser. | A simple text editor could also be used to edit and manipulate html text, stored on SD or SRAM - so that web pages could be locally edited and then displayed on a browser. | ||
Usability, Speed and Extensions | |||
The Tiny Basic is certainly fast enough to be usable, especially with the baudrate at 57600 - I did 10,000 iteration loops of | The Tiny Basic is certainly fast enough to be usable, especially with the baudrate at 57600 - I did 10,000 iteration loops of | ||
10 For A = 0 to 9999 | 10 For A = 0 to 9999 | ||
20 Print "My Name is Joe" | 20 Print "My Name is Joe" | ||
30 Next A | 30 Next A | ||
| Line 72: | Line 76: | ||
It should be straight forward to get the Nanode (Arduino) I/O pins accessible from basic keywords - perhaps something like defining each pin as a keyword | It should be straight forward to get the Nanode (Arduino) I/O pins accessible from basic keywords - perhaps something like defining each pin as a keyword | ||
to set Digital 4 High. As there are only 20 I/O pins on a ATmega - it's not going to take much program space to code them up. eg | to set Digital 4 High. As there are only 20 I/O pins on a ATmega - it's not going to take much program space to code them up. eg | ||
10 DOUT 4 = 1 // Set Dig 4 High | 10 DOUT 4 = 1 // Set Dig 4 High | ||
20 Let A = AIN 1 // Get input from Analogue 1 | |||
20 Let A = AIN 1 // Get input from Analogue 1 | |||
30 PRINT A | 30 PRINT A | ||
The Version of Tiny Basic with these analogue and digital I/O extensions can be found on this [https://gist.github.com/1520899 Github Gist.] | |||
==List of KeyWords== | ==List of KeyWords== | ||
edits