Emits asynchroneous digital-out.
More...
#include <cgnuino.h>
|
| CgnDO (byte, byte=1) |
| Consructor. More...
|
|
void | update () |
| Lowers down the pins that finished determined time length of output. More...
|
|
void | out (byte, uint32_t) |
| Starts putting out from a pin for determined time length. More...
|
|
Digital-out pins make Arduino boards emit digital signal as high (5V [or 3.3V]) or low (0V) voltage.
- Examples:
- Lchika.ino, and LchikaWave.ino.
CgnDO::CgnDO |
( |
byte |
p, |
|
|
byte |
s = 1 |
|
) |
| |
- Parameters
-
p | First pin number for digital-out pins. |
s | Number of digital-out pins. |
void CgnDO::out |
( |
byte |
i, |
|
|
uint32_t |
l |
|
) |
| |
- Parameters
-
i | Index of DO pin to emit digital-out. |
l | Time length of output in [ms]. |
- Examples:
- Lchika.ino, and LchikaWave.ino.
- Note
- For a normal usage, this method is intended to be called once inside
loop
function.
- Examples:
- Lchika.ino, and LchikaWave.ino.
The documentation for this class was generated from the following files: