https://github.com/elecfreaks/pxt-planetx
(行星X)The micro:bit new sensor series PlanetX with RJ11 connection port by ELECFREAKS Co.ltd
https://github.com/elecfreaks/pxt-planetx
elecfreaks makecode microbit planetx pxt
Last synced: 26 days ago
JSON representation
(行星X)The micro:bit new sensor series PlanetX with RJ11 connection port by ELECFREAKS Co.ltd
- Host: GitHub
- URL: https://github.com/elecfreaks/pxt-planetx
- Owner: elecfreaks
- License: mit
- Created: 2020-04-13T12:31:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2026-02-03T08:40:12.000Z (4 months ago)
- Last Synced: 2026-04-23T07:34:55.774Z (30 days ago)
- Topics: elecfreaks, makecode, microbit, planetx, pxt
- Language: TypeScript
- Homepage: https://elecfreaks.github.io/pxt-PlanetX/
- Size: 1020 KB
- Stars: 5
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
      
# PlanetX Package

This extension is designed to programme and drive the sensor series PlanetX(行星X) micro:bit expansion sensor, You can [get PlanetX from the Elecfreaks store](https://www.elecfreaks.com/)
## Code Example
```JavaScript
basic.forever(function () {
PlanetX.showUserText(1, "Temp:" + PlanetX.octopus_BME280(PlanetX.BME280_state.BME280_temperature_C))
PlanetX.showUserText(2, "Distance:" + PlanetX.Ultrasoundsensor(PlanetX.DigitalRJPin.J1, PlanetX.Distance_Unit_List.Distance_Unit_cm))
if (PlanetX.buttonAB(PlanetX.DigitalRJPin.J1, PlanetX.ButtonStateList.A)) {
PlanetX.motorfan(PlanetX.AnalogRJPin.J1, true, 80)
}
})
```
## Supported targets
* for PXT/microbit
## License
MIT