![]() |
W60X_Arduino
|
IO
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
-
ulPin The number of the pin whose mode you wish to set ulMode Either INPUT or OUTPUT
Function Documentation
◆ analogRead()
int analogRead | ( | unsigned char | pin | ) |
Reads the value from the specified analog pin.
- Parameters
-
pin the number of the analog input pin to read from
- Return values
-
average int (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] _pin gpio 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] _pin gpio pin [in] frequency the frequency of the tone in hertz(1 to 156250)
- Returns
- none
- Note
- none
Generated by
