mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Add port mappings to support older firmware version 2.0.00.0016 and later as well as newer firmware version 2.0.00.0017 or newer
This commit is contained in:
parent
dcccae9656
commit
e7634d50fa
1 changed files with 12 additions and 1 deletions
|
@ -93,13 +93,24 @@ const BoostPortFeedback = {
|
|||
* @readonly
|
||||
* @enum {number}
|
||||
*/
|
||||
const BoostPort = {
|
||||
|
||||
const BoostPort20000016OrOlder = {
|
||||
A: 55,
|
||||
B: 56,
|
||||
C: 0,
|
||||
D: 1
|
||||
};
|
||||
|
||||
const BoostPort20000017OrNewer = {
|
||||
A: 0,
|
||||
B: 1,
|
||||
C: 2,
|
||||
D: 3
|
||||
};
|
||||
|
||||
// Set default port mapping to support the newer firmware
|
||||
let BoostPort = BoostPort20000017OrNewer;
|
||||
|
||||
/**
|
||||
* Ids for each color sensor value used by the extension.
|
||||
* @readonly
|
||||
|
|
Loading…
Reference in a new issue