49 Commits

Author SHA1 Message Date
Gordon Williams
9b30f17227 Added jsvObjectGetChildIfExists to avoid the jsvObjectGetChild(... ,0) case - saves ~300b of flash space 2023-04-25 10:59:34 +01:00
Gordon Williams
bf3b777cde Graphics: Ensure that an error is thrown if a palette is used in >8 bit images. It was previously possible to ask for a palette on a 32 bit image, which caused an overflow 2023-02-20 19:56:14 +00:00
Rob Pilling
953f33d683 Update docs with [optional] (for typescript) 2023-02-08 22:48:30 +00:00
Gordon Williams
fad85dcb4e Pixl.js: Don't load the splash screen if BTN1 and BTN4 held down (for recovery purposes) 2023-02-01 10:06:02 +00:00
qucchia
c5bb94bf7a Limit documentation comments to 80 characters (#2244) 2022-07-27 15:32:19 +02:00
qucchia
4268e697e2 TypeScript: Pixl 2022-07-27 09:27:04 +02:00
qucchia
6b45a91fd1 Declare some custom TypeScript types 2022-07-23 20:16:15 +02:00
Gordon Williams
bece571f8e Bangle.js 2: Fix NRF.setAdvertising({},{scannable:false})
Bangle.js 2: Initial long range functionality (via `phy:"coded"` in `NRF.setAdvertising/setScan/requestDevice/findDevices`)
2022-07-20 17:13:18 +01:00
Gordon Williams
78ee733bc9 Add E.showMenu({"":{back:function}, ...}) for easy specification of 'back' menu item 2022-02-22 13:37:43 +00:00
Gordon Williams
4a7d30f4be Bangle.js: Add 'graphicsInternal' to make Graphics independent of JS vars. Terminal is now useful earlier, and can display softdevice errors 2022-01-31 16:35:38 +00:00
Gordon Williams
6af103e517 Pixl.js: SDA/SCL constants should point to A4/A5, not D4/D5 2020-07-21 09:02:49 +01:00
Gordon Williams
15de460b31 Update showMenu docs to be more explicit, and remove duplicate entries in docs 2020-06-05 08:08:04 +01:00
Gordon Williams
3a5f7667aa docs 2020-02-10 16:00:36 +00:00
Gordon Williams
55498b313f Pixl.js: Add E.showPrompt/Alert/Message (fix #1747) 2020-02-10 15:54:48 +00:00
Gordon Williams
24dac197a5 Allow Storage.read to make partial file reads (fix #1744) 2020-01-13 11:20:58 +00:00
Gordon Williams
9d5b6f9339 Add Graphics.setClipRect to allow draw ops to be restricted to a certain area
Bangle.js: add 'null' LCD mode to stop apps from drawing
            Bangle.js: add Bangle.getLCDMode
2019-12-04 17:00:05 +00:00
Gordon Williams
a61412bb76 Pixl.js - check '.splash' file at startup and use it for splash screen if it's there 2019-11-04 09:40:34 +00:00
Gordon Williams
720738944f Add E.showMenu, deprecate Pixl.menu - use a common function to ease porting between devices 2019-10-31 11:23:04 +00:00
Gordon Williams
dee73b5fae abstract away custom battery percentage info, increase screen timeout to 30s 2019-10-24 11:55:46 +01:00
Gordon Williams
bcab8a2089 Added Graphics.getFont/setFont/getFonts
Added Graphics.getFontHeight
            Added option to compile in 6x8 fixed-width fonts
2019-08-29 12:46:22 +01:00
Gordon Williams
1c8c9b72a9 docs 2019-04-01 10:48:57 +01:00
Gordon Williams
e56d91b044 Added active option to NRF.setScan/findDevices/requestDevices to allow scan response packets to be requested 2019-02-11 09:35:54 +00:00
Gordon Williams
750aa69cd4 pixl.js docs 2018-12-11 15:24:01 +00:00
Gordon Williams
4fbd56e487 remove newlines to work around broken python markdown parser 2018-10-22 10:16:01 +01:00
Gordon Williams
0920b252a8 add self-test for VCC 2018-10-18 10:37:36 +01:00
Gordon Williams
e3f0341932 Remove HASH/hashlib from all builds as it was confusingly in some and not others. Now use 'crypto'
require('crypto').SHA1 is now JS in Espruino Original to cut down on the flash required
2018-09-27 16:31:53 +01:00
Gordon Williams
5d76771c11 Massive bluetooth name refactoring, potentially to help with #1445 2018-09-03 17:07:23 +01:00
Gordon Williams
87f2ce3e03 Pixl.js: Add Pixl.setLCDPower to allow the LCD to be powered off, more than halving power consumption 2018-08-30 14:46:03 +01:00
Gordon Williams
aa169e8d21 Pixl.js menu now resets font alignment, and down arrow icon is fixed 2018-08-08 16:28:42 +01:00
Gordon Williams
fc68891802 Merge branch 'master' into iTracker_WIP 2018-06-13 14:31:47 +01:00
Gordon Williams
3970288489 Pixl.js add BLE aerial test to self-test, now also start immediately on BTN4 at boot 2018-05-22 10:17:45 +01:00
Gordon Williams
943cb76cef Added 'Graphics.getInstance()' for more platform independent graphics
Added VT100 'erase in Display' to Terminal
2018-05-22 09:36:36 +01:00
Gordon Williams
c2525d7bdd Pixl.js: Ensure Pixl.menu changes to bitmap fonts
Pixl.js: tweaked bias/contrast to improve display quality
2018-05-10 10:57:50 +01:00
Gordon Williams
a6aea5b0a9 fix menu issues when no title supplied 2018-05-03 12:26:36 +01:00
Gordon Williams
85fa167b33 refactoring of JS, adding iTracker py file from narioinc 2018-04-19 17:13:18 +01:00
Gordon Williams
2eb2c519bd nRF52: Add E.getBattery as a more global battery percentage function, deprecate Puck.getBatteryPercentage 2018-04-17 12:47:55 +01:00
Gordon Williams
3aeb8ecb90 Pixl.js: add Pixl.menu function for easy menus, build in graphical_menu.js 2018-04-17 11:04:10 +01:00
Gordon Williams
1e1306aa65 add Pixl.js SDA/SCL pin definitions 2018-04-09 12:37:12 +01:00
Gordon Williams
9d0afe9792 add option to flip everything 2018-03-27 11:58:15 +01:00
Gordon Williams
36f9aa8351 Pixl.js not outputs MAC address on screen at boot 2018-02-15 15:58:37 +00:00
Gordon Williams
a888cd59e6 fix compile issues 2018-02-13 14:19:14 +00:00
Gordon Williams
da705d4ba2 comments 2018-02-07 12:20:30 +00:00
Gordon Williams
d51ea4d7a9 fix partial updates 2018-02-07 09:38:32 +00:00
Gordon Williams
45e8525a6f updated bootloader to make it work with LCDs 2018-02-06 17:33:41 +00:00
Gordon Williams
45ffeeb404 add version 2018-02-06 15:47:08 +00:00
Gordon Williams
f97deb4820 Adding useful terminal to Pixl.js 2018-02-06 14:28:25 +00:00
Gordon Williams
b5fe14ad66 self test 2018-02-05 17:24:17 +00:00
Gordon Williams
f6a52724b2 logo 2018-02-05 17:01:08 +00:00
Gordon Williams
db128c19f8 refactoring 2018-02-05 12:01:36 +00:00