Arduino101PWMMotor 脉冲宽度调制
Arduino 101 PWM 电机扩展模块允许用户控制响应脉冲宽度调制的外部设备,例如连续电机或照明灯。Arduino 101 上的数字引脚 3、5、6 和 9 支持脉冲宽度调制。
更多链接<ul><li>下载 Arduino 101 电机脉冲宽度调制组件的示例项目。</li><li>查看 Arduino 101 PWM 电机的操作说明。</li></ul>
属性
BluetoothDevice
– The BluetoothLE component with a connection to the Arduino 101.
On
– Get whether the device attached to the Arduino 101 is turned on. This is a best guess approximation given the connected state of the Bluetooth low energy component and previous calls to TurnOn and TurnOff.
Speed
– The rate of pulse width modulation as a percentage of time. A value of 0 indicates an always-off state, 50 would result in the device being powered for half of each time unit, and 100 results in an always-on state. Default: 100.
方法
IsSupported
– Tests whether the Bluetooth low energy device is broadcasting support for the service. If true, calls to TurnOn and TurnOff should work correctly. Otherwise an error will be reported through the Screen’s ErrorOccurred event.