Go to the source code of this file.
◆ readPin()
read a digital state from an INPUTpin
- Note
- this will automatically call setPin if COPY&PASTE
- Parameters
-
idx | the index of the pin to use |
dig | determines if the value should be from the digital or the analog pins |
- Returns
- the read value as optVAL_t
◆ writePin()
void writePin |
( |
optVAL_t |
idx, |
|
|
bool |
val |
|
) |
| |
|
inline |
write a boolean state to an output pin
- Note
- this will automatically call setPin if COPY&PASTE
-
if SHIFT_REGISTER is enabled you can assign the additional outputs 0-based from 100
- Parameters
-
idx | the index of the pin to use |
val | the state the pin should have |
◆ writePWM()
write a clamped pwm value to an output pin
- Note
- this will use PIN_MOTOR_SPE
The value gets updated every EBOARD_PWM_SPE seconds
- Parameters
-
val | the pwm value [0-255] to use |
◆ _OpwmValue
◆ _pwmValue
- Note
- this is the current to-write PWM value
Definition at line 4 of file eagle_PinCtrl.h.