Command: |
ANALOG.OUT i [TO] OUT n/BB n |
---|---|
Command Syntax: |
CONNECT ANALOG.OUT i [TO] OUT n/BB n |
Range: |
|
Describe: |
Connect a generic “analog” output control to a pin/port that supports analog input. ANALOG.OUT shares number space with DCMOTOR and SQUAREWAVE objects. CONNECT ANALOG.OUT i [TO] OUT 1 CONNECT ANALOG.OUT i [TO] BB 4 CONNECT ANALOG.OUT i [TO] BB 1 |
Result: |
Connect analog output to pin. If pin supports hardware pulse with modulation (PWM), the object uses. If the pin does not support hardware-generated PWM, the sketch will generate PWM in software at 490 Hz with the duty cycle specfic between 0 (none) and 255 (full on). |
Type or |
Control |