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:
1 parent
dcccae9656
commit
e7634d50fa
1 file changed
+12
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user