ulisp Cardputer - Error escape! on pressing Enter


#1

I have a problem after installing uLisp on Cardputer. What I would not type for example (+ 2 2) I get an error message when I press Enter: Error escape! I have the same thing when I type through Serial Monitor in Arduino.


#2

Can you give a few more details. Is it uLisp Cardputer Release 4.7d? What version of the Cardputer is it?


#3

I am using Cardputer DataG46 M5Stamp S3 - ESP32-S3 - M5Stack K132. Previously I checked it on uLisp version 4.7 and now on 4.7d and the effect is the same. In the attached pictures it is shown. I cannot enter even the most basic program from the keyboard. It also does not work through the Arduino monitor - the same error.


#4

That looks like you’ve got the original Cardputer (not the V1.1) which is the same model I tested the code on. I can only think that there’s something odd about your board causing it to think that Escape is permanently pressed. Try changing the following line in the uLisp source before uploading uLisp:

In the function testescape () change this line:

if ((digitalRead(0) == LOW) || (Serial.available() && Serial.read() == '~')) error2("escape!");

to:

if (Serial.available() && Serial.read() == '~') error2("escape!");

and let me know if that makes a difference.


#5

This code change helped. Thank you very much for your help.


#6

Great - glad it helped!


#7