Hi David !
First of all , thanks for your efforts on making this working.
The results :
The code you suggested works perfectly :-) , so you could make it a 2.4c version …
However I have this remark to you :
In setup ()
there’s is this code :
Serial.begin(9600);
while (!Serial);
initworkspace();
initenv();
initsleep();
pfstring(PSTR("uLisp 2.4 "), pserial); pln(pserial);
I noticed on the mkrzero , and also on the itsibitsy that when you are autorunning with NO serial connection to the computer , that "while (!serial) will stall the software.
This because on native usb boards , as on the 2 mentioned boards , the serial connection will never be available.
And therefore the autorun will not work. Don’t understand me wrong , your solution for autorunning was needed , because I knew that this problem existed , but I bypassed the problem with an external serial to usb connection.
So an extra solution could be something like this …
Serial.begin(9600);
#if defined (resetautorun)
#else
while (!Serial);
#endif
initworkspace();
initenv();
initsleep();
pfstring(PSTR("uLisp 2.4 "), pserial); pln(pserial);
So conlusion :
your solution is perfectly , but maybe the while (! serial) could also be corrected ???)
Hope you like it , and again thanks for the quick solution.
Looking forward to a 2.4c version …
Kind regards
Ronny Suy