Skip to content

Commit

Permalink
remove jacdac for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Aug 31, 2024
1 parent 2a4b240 commit fae97ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 1 addition & 7 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@
"radio": "*",
"microphone": "*",
"datalogger": "*",
"pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#v0.1.0",
"jacdac": "github:microsoft/pxt-jacdac#v1.9.28",
"jacdac-light-level": "github:microsoft/pxt-jacdac/light-level#v1.9.28",
"jacdac-soil-moisture": "github:microsoft/pxt-jacdac/tree/master/soil-moisture#v1.9.28",
"jacdac-distance": "github:microsoft/pxt-jacdac/tree/master/distance#v1.9.28",
"jacdac-temperature": "github:microsoft/pxt-jacdac/tree/master/temperature#v1.9.28",
"jacdac-flex": "github:microsoft/pxt-jacdac/tree/master/flex#v1.9.28"
"pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#v0.1.0"
},
"files": [
"keymap.ts",
Expand Down
8 changes: 8 additions & 0 deletions sensorFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ namespace microcode {
else if ("Logo Pressed" || "Logo Press" || "LP") return new LogoPressSensor();
else if ("Volume" || "Volume" || "V") return new VolumeSensor();
else if ("Compass" || "Compass" || "C") return new CompassHeadingSensor();
/*
else if ("Jac Light" || "Jacdac Light" || "JL") return new JacdacLightSensor();
else if ("Jac Moist" || "Jacdac Moisture" || "JM") return new JacdacSoilMoistureSensor();
else if ("Jac Dist" || "Jacdac Distance" || "JD") return new JacdacDistanceSensor();
else if ("Jac Flex" || "Jacdac Flex" || "JF") return new JacdacFlexSensor();
else if ("Jac Temp" || "Jacdac Temperature" || "JT") return new JacdacTemperatureSensor();
"jacdac": "github:microsoft/pxt-jacdac#v1.9.28",
"jacdac-light-level": "github:microsoft/pxt-jacdac/light-level#v1.9.28",
"jacdac-soil-moisture": "github:microsoft/pxt-jacdac/tree/master/soil-moisture#v1.9.28",
"jacdac-distance": "github:microsoft/pxt-jacdac/tree/master/distance#v1.9.28",
"jacdac-temperature": "github:microsoft/pxt-jacdac/tree/master/temperature#v1.9.28",
"jacdac-flex": "github:microsoft/pxt-jacdac/tree/master/flex#v1.9.28"
*/
else return new AccelerometerXSensor()
}
}
Expand Down
8 changes: 4 additions & 4 deletions sensorSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ namespace microcode {
this.cursor.resetOutlineColourOnMove = true
const icons: string[] = [
"accelerometer", "accelerometer", "accelerometer", "right_turn", "right_spin", "pin_0", "pin_1", "pin_2",
"led_light_sensor", "thermometer", "magnet", "finger_press", "speaker", "compass", "microbitLogoWhiteBackground",
"microbitLogoWhiteBackground", "microbitLogoWhiteBackground", "microbitLogoWhiteBackground", "microbitLogoWhiteBackground"
"led_light_sensor", "thermometer", "magnet", "finger_press", "speaker", "compass",
// "microbitLogoWhiteBackground","microbitLogoWhiteBackground", "microbitLogoWhiteBackground", "microbitLogoWhiteBackground", "microbitLogoWhiteBackground"
]

const ariaIDs: string[] = [
"accelerometer X", "accelerometer Y", "accelerometer Z", "Pitch", "Roll", "A. Pin 0", "A. Pin 1", "A. Pin 2", "led_light_sensor",
"thermometer", "S10", "Logo Press", "Volume", "Compass", "Jacdac Flex", "Jacdac Temperature", "Jacdac Light",
"Jacdac Moisture", "Jacdac Distance"
"thermometer", "S10", "Logo Press", "Volume", "Compass",
// "Jacdac Flex", "Jacdac Temperature", "Jacdac Light", "Jacdac Moisture", "Jacdac Distance"
]

//-----------------------------------------------------
Expand Down

0 comments on commit fae97ff

Please sign in to comment.