W60X_Arduino: IO

Arduino W60X

W60X_Arduino

Digital Analog and Advanced I/O. More...

Functions

void tone (uint8_t _pin, unsigned int frequency)
 Generates a square wave of the specified frequency (and 50% duty cycle) on a pin. More...
 
void noTone (uint8_t _pin)
 Stops the generation of a square wave triggered by tone(). More...
 
void pinMode (uint32_t ulPin, uint32_t ulMode)
 
void digitalWrite (uint32_t ulPin, uint32_t ulVal)
 
int digitalRead (uint32_t ulPin)
 
int analogRead (unsigned char pin)
 Reads the value from the specified analog pin. More...
 

Detailed Description

Digital Analog and Advanced I/O.

Parameters
ulPinThe number of the pin whose mode you wish to set
ulModeEither INPUT or OUTPUT

Function Documentation

◆ analogRead()

int analogRead ( unsigned char  pin)

Reads the value from the specified analog pin.

Parameters
pinthe number of the analog input pin to read from
Return values
averageint (8192 -> 16384, look up for example to learn how to change it to voltage)

◆ noTone()

void noTone ( uint8_t  _pin)

Stops the generation of a square wave triggered by tone().

Parameters
[in]_pingpio pin
Returns
none
Note
none

◆ tone()

void tone ( uint8_t  _pin,
unsigned int  frequency 
)

Generates a square wave of the specified frequency (and 50% duty cycle) on a pin.

Parameters
[in]_pingpio pin
[in]frequencythe frequency of the tone in hertz(1 to 156250)
Returns
none
Note
none
Generated by   doxygen 1.8.14