Skip to content

(行星X)The micro:bit new sensor series PlanetX with RJ11 connection port by ELECFREAKS Co.ltd

License

Notifications You must be signed in to change notification settings

almasy/pxt-PlanetX

 
 

Repository files navigation

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

Code Example

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

About

(行星X)The micro:bit new sensor series PlanetX with RJ11 connection port by ELECFREAKS Co.ltd

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.2%
  • C++ 11.9%
  • Other 0.9%