Hello,
I am trying to run tinybasic on arduino uno.
the sketch i am using is the following:-
https://github.com/BleuLlama/TinyBasicPlus/blob/master/Arduino/TinyBasicPlus.ino
after compiling the sketch the following errors are observed:-
Arduino: 1.6.4 (Mac OS X), Board: "Arduino Uno"
In file included from /Users/purvesh/Documents/Software/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from TinyBasicPlus.ino:81:
TinyBasicPlus:278: error: variable 'keywords' must be const in order to be put into read-only section by means of 'attribute((progmem))'
TinyBasicPlus:370: error: variable 'func_tab' must be const in order to be put into read-only section by means of 'attribute((progmem))'
TinyBasicPlus:385: error: variable 'to_tab' must be const in order to be put into read-only section by means of 'attribute((progmem))'
TinyBasicPlus:390: error: variable 'step_tab' must be const in order to be put into read-only section by means of 'attribute((progmem))'
TinyBasicPlus:395: error: variable 'relop_tab' must be const in order to be put into read-only section by means of 'attribute((progmem))'
TinyBasicPlus:415: error: variable 'highlow_tab' must be const in order to be put into read-only section by means of 'attribute((progmem))'
variable 'keywords' must be const in order to be put into read-only section by means of 'attribute((progmem))'
need help asap,
thanks
Well the error message says it all. You are trying to put variables into read only memory. Once in read only memory they are fixed and can not change so the compiler is telling you to change the defination of those variables to a const type. Just add const in front of the defination of those variables.
Earlier versions of the Arduino IDE were not as fussy about this although you still coudn't change these variable values they were always constants.
Thanks Grumpy_Mike .
it worked 
Hello,
The code from the link worked well in arduino ide 1.0.
https://github.com/BleuLlama/TinyBasicPlus/blob/master/Arduino/TinyBasicPlus.ino
Now i am trying to add a ps2 keyboard using ps2 library and get an output on the serial monitor.
I have made some tweaks in the sketch to add keyboard.
The changes are made in the sketch are
- inclusion of keyboard library
- in void setup()
- in static int inchar()
My sketch doesn't gives me any response on serial monitor ( not even the message given by TinyBasic)
Request help for the same.
the code is attached to the post
tinybasicwithps2.ino (45 KB)
First try keyboard without tinybasic. Make sure it works.
I tried the same and it works perfectly fine.
what to do to add ps2 so that tinybasic runs fine using ps2 keyboard
I have a code I'll share with you when I get home. Meanwhile look at my tinybasic project:
Here's the code I used. You need a PS/2 keyboard and a GLCD display, if you don't have it modify the sketch to use serial terminal.
TinyBasic_2.ino (32.3 KB)