Commit Graph
27 Commits
Author SHA1 Message Date
David Lechner 956b6f3c96 firmware: add windows BLE hacks
This works around some issues that have been observed on a specific
Windows computer.

Issue: https://github.com/pybricks/support/issues/256
2021-05-16 16:18:34 -05:00
David Lechner 9005e909ba refactor common context menu code 2021-02-01 10:26:06 -06:00
David Lechner 334668bdfb rework mobile view height 2021-02-01 10:26:05 -06:00
David Lechner 6f204a65f6 reorganize src/ directory
Makes for much less scrolling/jumping around.

https://redux.js.org/style-guide/style-guide#structure-files-as-feature-folders-or-ducks
2021-02-01 10:26:05 -06:00
David Lechner 252c741180 add app install button 2021-01-28 20:21:20 -06:00
David Lechner 218dda4d0b use typed-redux-saga in flash-firmware sagas
This make things a bit more type safe and a bit easier to read.
2021-01-21 22:22:46 -06:00
David Lechner ab0c850b80 add proper error handling for firmware zip error 2021-01-21 19:49:53 -06:00
David Lechner b38a47f4e6 use os detection for initial dark mode setting 2021-01-15 10:54:57 -06:00
David Lechner 25c0d104a9 convert macOS check to utility function 2021-01-14 15:25:57 -06:00
David Lechner ae996453e8 drop polyfill for chromimum < v85
This removes the polyfill for using older chrome browsers before the
writeWithResponse and writeWithoutResponse APIs were added.
2020-12-21 13:05:47 -06:00
David Lechner 5c3727b3ce Update @types/web-bluetooth
Now includes writeValueWithResponse and writeValueWithoutResponse
2020-07-15 13:17:40 -05:00
David Lechner 61a5eb6039 add xor8 checksum
we are starting with 0xff like all known LEGO checksums of this style.
2020-06-10 21:59:34 -05:00
David Lechner 31c3e2b52e refactor common test helpers into test/
This way we can share them with multiple tests
2020-06-10 21:59:34 -05:00
David Lechner b6be163ccb refactor lookup function 2020-06-08 20:56:00 -05:00
David Lechner 9d789c13e1 add test for util.assert 2020-05-27 20:57:22 -05:00
David Lechner 59c14a3ad7 add test for util.hex 2020-05-27 20:57:22 -05:00
David Lechner 6713afe198 Add util funciton to format as hex 2020-05-26 21:20:08 -05:00
David Lechner dd9d789e9a license 2020-05-22 19:54:48 -05:00
David Lechner 6ef0dee20c test utils/web-bluetooth 2020-05-21 21:27:47 -05:00
David Lechner c979d21255 use describe in math tests
just for better organization
2020-05-21 21:27:47 -05:00
David Lechner ae21501aa2 test sumComplement32 2020-05-21 21:27:47 -05:00
David Lechner ed5bd4728a add id to bootloader request actions
This will be used to match didRequest to a requst to avoid issues with messages being queued concurrently
2020-05-21 21:27:47 -05:00
David Lechner 3b22c0377f add tests for bootloader message decoder
also fix errors found by test
2020-05-21 21:27:47 -05:00
David Lechner 23566a7d4a Check Web Bluetooth capabilities
This adds/improves checks for the various Web Bluetooth capabilities
that we are using and notifies the user when capabilities are missing.
2020-05-20 21:31:51 -05:00
David Lechner 90817a1ae7 github: add CI for pull requests
and hacks to get tests working
2020-05-20 14:52:45 -05:00
David Lechner c7b7162693 implement flashing firmware from new zip format 2020-05-02 14:40:18 -05:00
David Lechner 9d545f8f5c add polyfill for new Web Bluetooth methods 2020-05-01 21:37:45 -05:00