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
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
3ae2fb2eef
wire up firmware flash progress
...
Also turn off logging and longer checksum interval to improve performance
94K movehub fw flashes in about 1:45
2020-05-20 19:57:23 -05:00
David Lechner
0171255be9
fix lint error
2020-05-20 16:30:39 -05:00
Laurens Valk
93e0bf8902
hub: check response to size message
...
The hub responds to every message with a checksum. The mpy size message is no different, so we need to read it.
This fixes the checksum messages being out of sync by one.
2020-05-08 12:08:25 +02:00
David Lechner
02d4726092
update to @pybricks/mpy-cross-4 v2
...
v2 allows us to pass the mpy-cross options from the firmware to the
mpy-cross compiler.
2020-05-04 14:05:18 -05:00
David Lechner
9a64e68c60
hub: change size to little-endian
...
firmware now expects little endian checksum
2020-05-04 12:03:34 -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
David Lechner
0a50ebddd7
bootloader: add withResponse option
...
This takes advantage of new (not implemented yet) Web Bluetooth APIs to write with or without response
2020-05-01 21:11:01 -05:00
David Lechner
03dba3ab9a
use published @pybricks/mpy-cross-4 package
2020-05-01 19:13:17 -05:00
David Lechner
13a2b271b0
remove debug code
...
This was just there for debugging and forgot to remove it before pushing.
2020-04-20 17:25:33 -05:00
David Lechner
b1e99e0582
implement notifications
2020-04-20 13:57:58 -05:00
David Lechner
530f164af1
alphabetize imports
2020-04-19 15:53:28 -05:00
David Lechner
a753fd77a7
wire up flash button
2020-04-18 21:58:03 -05:00
David Lechner
629fbb928d
wire up repl button
2020-04-17 17:24:10 -05:00
David Lechner
18417cb37c
wire up stop button
2020-04-17 17:16:23 -05:00
David Lechner
454475980a
wire up run button
2020-04-17 16:57:51 -05:00
David Lechner
232a8f5db5
supress cryptic error message
2020-04-17 00:55:29 -05:00
David Lechner
c7c11f0040
fix bluetooth stuck in connecting state after cancel
2020-04-17 00:07:15 -05:00
David Lechner
a67656def6
wire terminal to ble
2020-04-16 23:58:35 -05:00
David Lechner
b4d81fd3e5
implement bluetooth connect using redux
2020-04-16 19:09:50 -05:00