Microbit 板载引脚交互的更简单的接口

« 返回首页

Microbit Io Pin Simple:板载引脚交互的更简单的接口

The Microbit_Io_Pin component lets users configure the BBC micro:bit’s analog pins for input and output, and to read, write, and request notifications for the I/O pin states.

Properties

  • BluetoothDevice – The BluetoothLE component connected to the micro:bit device (setter).

get Microbit_Io_Pin_Simple1 BluetoothDevice

set Microbit_Io_Pin_Simple1 BluetoothDevice  to

Methods

  • ConfigurePin

call Microbit_Io_Pin_Simple1 ConfigurePinpinNumberanaloginput

  • ReadInputPinData – Method for ReadInputPinData

call Microbit_Io_Pin_Simple1 ReadInputPinData

  • RequestPinDataUpdates – Method for RequestPinDataUpdates

call Microbit_Io_Pin_Simple1 RequestPinDataUpdates

  • StopPinDataUpdates – Method for StopPinDataUpdates

call Microbit_Io_Pin_Simple1 StopPinDataUpdates

  • WriteOutputPinData

call Microbit_Io_Pin_Simple1 WriteOutputPinDatapinNumberpinValue

  • WritePWMControl – Method for WritePWMControl

call Microbit_Io_Pin_Simple1 WritePWMControlpinNumbervalueperiod

Events

  • InputPinDataReceived – Event for InputPinDataReceived

when Microbit_Io_Pin_Simple1 InputPinDataReceived IO_Pin_Data do

  • WroteOutputPinData – Event for WroteOutputPinData

when Microbit_Io_Pin_Simple1 WroteOutputPinData IO_Pin_Data do

  • WrotePWMControl – Event for WrotePWMControl

when Microbit_Io_Pin_Simple1 WrotePWMControl PWM_Control_Field do