Writing your own software
30
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.
usbdrdaqpg.en
3.5.21 UsbDrDaqSetPWM
PICO_STATUS UsbDrDaqSetPWM(
short
handle,
USB_DRDAQ_GPIO
IOChannel,
unsigned short
period,
unsigned char
cycle
)
This function is used to configure the general-purpose I/Os as pulse-width modulation
outputs.
Arguments:
handle:
or
IOChannel:
GPIOs 1 and 2 can be used as PWM outputs.
period:
The period of the waveform in microseconds.
cycle:
Duty cycle as a percentage
Returns:
11
23
37
37
37
37
Summary of Contents for DrDAQ
Page 2: ......