2017년 7월 3일 월요일

Arduino101PWMMotor


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
⦁ Download a sample project for the Arduino 101 Pulse Width Modulation for Motors component.
⦁ View the how to instructions for the Arduino 101 PWM Motor.

Properties

⦁ BluetoothDevice – The BluetoothLE component with a connection to the Arduino 101.

get Arduino101PWMMotor1 BluetoothDevice
set Arduino101PWMMotor1 BluetoothDevice  to
⦁ 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.
get Arduino101PWMMotor1 On
⦁ 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.
get Arduino101PWMMotor1 Speed
set Arduino101PWMMotor1 Speed  to

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.

call Arduino101PWMMotor1 IsSupported
⦁ TurnOff – Turn off the connected device.
call Arduino101PWMMotor1 TurnOff
⦁ TurnOn – Turn on the connected device.
call Arduino101PWMMotor1 TurnOn



댓글 없음:

댓글 쓰기