The Arduino 101 PWM Motor extension lets users control external devices that respond to pulse width modulation, such as continuous motors or lights. On the Arduino 101, digital pins 3, 5, 6, and 9 support pulse width modulation.
More Links
Properties
⦁
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.Methods
⦁
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.
⦁
TurnOff
– Turn off the connected device.
⦁
TurnOn
– Turn on the connected device.
댓글 없음:
댓글 쓰기