|
1 |
| -/* uLisp ESP Version 4.0a - www.ulisp.com |
2 |
| - David Johnson-Davies - www.technoblogy.com - 9th July 2021 |
| 1 | +/* uLisp ESP Version 4.0b - www.ulisp.com |
| 2 | + David Johnson-Davies - www.technoblogy.com - 20th October 2021 |
3 | 3 |
|
4 | 4 | Licensed under the MIT license: https://opensource.org/licenses/MIT
|
5 | 5 | */
|
@@ -59,12 +59,14 @@ Adafruit_SSD1306 tft(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
|
59 | 59 | #define WORKSPACESIZE (4000-SDSIZE) /* Cells (8*bytes) */
|
60 | 60 | #define EEPROMSIZE 4096 /* Bytes available for EEPROM */
|
61 | 61 | #define SDCARD_SS_PIN 10
|
| 62 | + #define LED_BUILTIN 13 |
62 | 63 |
|
63 | 64 | #elif defined(ESP32)
|
64 | 65 | #define WORKSPACESIZE (8000-SDSIZE) /* Cells (8*bytes) */
|
65 | 66 | #define EEPROMSIZE 4096 /* Bytes available for EEPROM */
|
66 | 67 | #define analogWrite(x,y) dacWrite((x),(y))
|
67 | 68 | #define SDCARD_SS_PIN 13
|
| 69 | + #define LED_BUILTIN 13 |
68 | 70 |
|
69 | 71 | #else
|
70 | 72 | #error "Board not supported!"
|
@@ -622,15 +624,15 @@ void autorunimage () {
|
622 | 624 | file.close();
|
623 | 625 | if (autorun != NULL) {
|
624 | 626 | loadimage(NULL);
|
625 |
| - apply(0, autorun, NULL, NULL); |
| 627 | + apply(NIL, autorun, NULL, NULL); |
626 | 628 | }
|
627 | 629 | #else
|
628 | 630 | EEPROM.begin(EEPROMSIZE);
|
629 | 631 | int addr = 0;
|
630 | 632 | object *autorun = (object *)EpromReadInt(&addr);
|
631 | 633 | if (autorun != NULL && (unsigned int)autorun != 0xFFFF) {
|
632 | 634 | loadimage(NULL);
|
633 |
| - apply(0, autorun, NULL, NULL); |
| 635 | + apply(NIL, autorun, NULL, NULL); |
634 | 636 | }
|
635 | 637 | #endif
|
636 | 638 | }
|
@@ -3533,7 +3535,7 @@ object *fn_pprintall (object *args, object *env) {
|
3533 | 3535 | if (consp(val) && symbolp(car(val)) && builtin(car(val)->name) == LAMBDA) {
|
3534 | 3536 | superprint(cons(bsymbol(DEFUN), cons(var, cdr(val))), 0, pfun);
|
3535 | 3537 | } else {
|
3536 |
| - superprint(cons(bsymbol(DEFVAR), cons(var, cons(quote(val), NULL))), 0, pserial); |
| 3538 | + superprint(cons(bsymbol(DEFVAR), cons(var, cons(quote(val), NULL))), 0, pfun); |
3537 | 3539 | }
|
3538 | 3540 | pln(pfun);
|
3539 | 3541 | testescape();
|
|
0 commit comments