microbit-web-components
Version:
Web Components library for micro:bit
1 lines • 407 B
JavaScript
import{r as e,g as t}from"./p-416d80af.js";import{m as i}from"./p-ede9ed58.js";class r{constructor(t){e(this,t),this.deviceInformation=null,this.disconnectedText="Disconnected",this.noInfo="No hardware version found",i.addListener(this)}render(){return this.deviceInformation?this.deviceInformation.hardwareRevision||this.noInfo:this.disconnectedText}get el(){return t(this)}}export{r as microbit_hardware};