Syntax
void analogWrite(
    uint32_t ulPin, 
    uint32_t ulValue
);
ContentsIndex
PreviousUpNext
analogWrite
Example
Syntax
void analogWrite(
    uint32_t ulPin, 
    uint32_t ulValue
);
Description

Outputs analog value(PWM wave)to the assigned analog output pin.

Parameters
Parameters 
Description 
uint32_t ulPin 
[IN] Analog output pin number; 3, 9
 
uint32_t ulValue 
[IN] duty cycle,0~1023 
Returns

void

Example
uint32_t analogPin = 9;
void setup()
{}
void loop()
{
    analogWrite(analogPin,128);
}
File

wiring_analog.h

Group