From 4e7bae1c77cf7d79e040fb1282f8d6864009e27b Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 22 Mar 2023 16:07:15 +0000 Subject: [PATCH] Pixl.js: Switch to slower ROM-saving sin/cos/atan/atan2 (running out of free space after JIT enabled) --- ChangeLog | 1 + boards/PIXLJS.py | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index fab3e4b82..ed1a64f6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Fix 'ghosting' issue on Welcome screen (forcing timeout/lcdPower/etc at boot could disable the EXTCOMIN toggle) nRF52: OneWire accesses are now scheduled with the Timeslot API to avoid the softdevice interfering (fix #1831) nRF52: Add NRF.on('bond'/'advertising') events to keep track of BLE status more easily + Pixl.js: Switch to slower ROM-saving sin/cos/atan/atan2 (running out of free space after JIT enabled) 2v17 : Bangle.js: When reading file info from a filename table, do it in blocks of 8 (20% faster file search) Bangle.js2: Increase flash buffer size from 16->32 bytes (5% performance increase) diff --git a/boards/PIXLJS.py b/boards/PIXLJS.py index 19123619a..6bd0ff7c2 100644 --- a/boards/PIXLJS.py +++ b/boards/PIXLJS.py @@ -54,6 +54,7 @@ info = { 'DEFINES+=-DNFC_DEFAULT_URL=\'"https://www.espruino.com/ide"\'', 'DEFINES+=-DDUMP_IGNORE_VARIABLES=\'"g\\0"\'', 'DEFINES+=-DNEOPIXEL_SCK_PIN=14 -DNEOPIXEL_LRCK_PIN=15', # see https://github.com/espruino/Espruino/issues/2071 + 'DEFINES+=-DSAVE_ON_FLASH_MATH', 'DFU_PRIVATE_KEY=targets/nrf5x_dfu/dfu_private_key.pem', 'DFU_SETTINGS=--application-version 0xff --hw-version 52 --sd-req 0x8C,0x91', 'INCLUDE += -I$(ROOT)/libs/pixljs',