Read or write an analog value through a 12 bits DAC/ADC.
More...
#include <AIO.h>
|
static void | writePin (int pin, double value) |
| Write an analog pin to the desired value. More...
|
|
static double | readPin (int pin) |
| Read an analog pin. More...
|
|
Read or write an analog value through a 12 bits DAC/ADC.
Definition at line 41 of file AIO.h.
◆ readPin()
double AIO::readPin |
( |
int |
pin | ) |
|
|
static |
Read an analog pin.
Pins Ax and Bx can handle 0 to 5V values. Pins Cx can handle +/- 10V.
- Parameters
-
pin | One of AO0, AO1, ... CO2 |
- Returns
- The value read on the pin, in volts
Definition at line 34 of file AIO.cpp.
◆ writePin()
void AIO::writePin |
( |
int |
pin, |
|
|
double |
value |
|
) |
| |
|
static |
Write an analog pin to the desired value.
Pins Ax and Bx can handle 0 to 5V values. Pins Cx can handle +/- 10V.
- Parameters
-
pin | One of AO0, AO1, ... CO2 |
value | The voltage to write on the pin, in volts |
- Examples
- example_aio.cpp.
Definition at line 13 of file AIO.cpp.
The documentation for this class was generated from the following files:
- C:/Users/jackb/OneDrive - etu.univ-lyon1.fr/TERi/Eclipse/workspace/APIForRIO/src/AIO.h
- C:/Users/jackb/OneDrive - etu.univ-lyon1.fr/TERi/Eclipse/workspace/APIForRIO/src/AIO.cpp