Skip to content

Commit bd942f4

Browse files
authored
Version 4.0b - 20th October 2021
Minor bug fixes
1 parent e21f43e commit bd942f4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ulisp-esp.ino

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
33
44
Licensed under the MIT license: https://opensource.org/licenses/MIT
55
*/
@@ -59,12 +59,14 @@ Adafruit_SSD1306 tft(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
5959
#define WORKSPACESIZE (4000-SDSIZE) /* Cells (8*bytes) */
6060
#define EEPROMSIZE 4096 /* Bytes available for EEPROM */
6161
#define SDCARD_SS_PIN 10
62+
#define LED_BUILTIN 13
6263

6364
#elif defined(ESP32)
6465
#define WORKSPACESIZE (8000-SDSIZE) /* Cells (8*bytes) */
6566
#define EEPROMSIZE 4096 /* Bytes available for EEPROM */
6667
#define analogWrite(x,y) dacWrite((x),(y))
6768
#define SDCARD_SS_PIN 13
69+
#define LED_BUILTIN 13
6870

6971
#else
7072
#error "Board not supported!"
@@ -622,15 +624,15 @@ void autorunimage () {
622624
file.close();
623625
if (autorun != NULL) {
624626
loadimage(NULL);
625-
apply(0, autorun, NULL, NULL);
627+
apply(NIL, autorun, NULL, NULL);
626628
}
627629
#else
628630
EEPROM.begin(EEPROMSIZE);
629631
int addr = 0;
630632
object *autorun = (object *)EpromReadInt(&addr);
631633
if (autorun != NULL && (unsigned int)autorun != 0xFFFF) {
632634
loadimage(NULL);
633-
apply(0, autorun, NULL, NULL);
635+
apply(NIL, autorun, NULL, NULL);
634636
}
635637
#endif
636638
}
@@ -3533,7 +3535,7 @@ object *fn_pprintall (object *args, object *env) {
35333535
if (consp(val) && symbolp(car(val)) && builtin(car(val)->name) == LAMBDA) {
35343536
superprint(cons(bsymbol(DEFUN), cons(var, cdr(val))), 0, pfun);
35353537
} 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);
35373539
}
35383540
pln(pfun);
35393541
testescape();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy