Skip to content

Commit 2de6698

Browse files
committed
Espruino Pico: Removed 'tv' library by default to free up flash storage
1 parent 7940729 commit 2de6698

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Bangle.js: Add Bangle.setOptions({stepCounterDisabled:bool}) to disable the step counter
99
Date: fix parsing of ISO8601 timezones (+HHMM worked, but +HH:MM and +HH added) (fix #2669)
1010
Bangle.js1: dump() now doesn't write out interpreter state as JS (saves 1.5kB Flash)
11+
Espruino Pico: Removed 'tv' library by default to free up flash storage
1112

1213
2v28 : Add `E.internal` as a way to access the 'hidden root' containing Espruino internal variables that previously needed `global["\xff"]`
1314
Bangle.js: Fix back handler not removed when using E.setUI with a back button but without widgets (#2636)

boards/PICO_R1_3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'USB_HID',
3636
'NET',
3737
'GRAPHICS',
38-
'TV',
38+
#'TV', # removed to save space
3939
'FILESYSTEM',
4040
'CRYPTO','SHA256',#'SHA512',
4141
'TLS',
@@ -47,7 +47,8 @@
4747
'DEFINES+=-DUSE_USB_OTG_FS=1 -DPICO -DPICO_1V3',
4848
'DEFINES+=-DPIN_NAMES_DIRECT=1', # Package skips out some pins, so we can't assume each port starts from 0
4949
'DEFINES += -DESPR_USE_STEPPER_TIMER=1', # Build in the code for stepping using the timer
50-
'DEFINES += -DSAVE_ON_FLASH_MATH',
50+
'DEFINES += -DSAVE_ON_FLASH_MATH',
51+
'DEFINES += -DESPR_NO_REGEX_OPTIMISE=1', # strip out regex optimisations to free some flash space
5152
'DEFINES += -DESPR_LIMIT_DATE_RANGE', # not enough code memory left for the full range of Date()
5253
'DEFINES += -DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol
5354
'STLIB=STM32F401xE',

libs/tv/jswrap_tv.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@
2828
"class" : "tv",
2929
"ifdef" : "STM32"
3030
}
31-
This library provides TV out capability on the Espruino and Espruino Pico.
31+
This library provides TV out capability on the [Espruino WiFi](/WiFi)
3232
3333
See the [Television](/Television) page for more information.
34+
35+
**Note:** As of 2v29 the `tv` library is only included by default in
36+
the Espruino WiFi (Pico and Original boards have had to have it removed
37+
to free up some Flash memory)
3438
*/
3539

3640

0 commit comments

Comments
 (0)