|
| void | init () final |
| | Initialize I2C connection for solenoids.
|
| |
| void | setSolenoid (uint8_t solenoid, bool state) final |
| | Set the state of a solenoid.
|
| |
| void | setSolenoids (uint16_t state) final |
| | Set the state of all the solenoids.
|
| |
|
| void | write (uint16_t state) |
| |
◆ init()
| void Solenoids::init |
( |
void |
| ) |
|
|
finalvirtual |
◆ setSolenoid()
| void Solenoids::setSolenoid |
( |
uint8_t |
solenoid, |
|
|
bool |
state |
|
) |
| |
|
finalvirtual |
Set the state of a solenoid.
- Parameters
-
| solenoid | The solenoid number to set (0 to 15). |
| state | The state to set the solenoid to. |
Implements SolenoidsInterface.
References write().
◆ setSolenoids()
| void Solenoids::setSolenoids |
( |
uint16_t |
state | ) |
|
|
finalvirtual |
Set the state of all the solenoids.
- Parameters
-
| state | Two bytes describing the state of the solenoids, one bit per solenoid. |
Implements SolenoidsInterface.
References write().
◆ write()
| void Solenoids::write |
( |
uint16_t |
newState | ) |
|
|
private |
Write to the I2C port expanders.
Low level function, mapping to actual wiring is done here.
- Parameters
-
| newState | Two bytes describing the state of the solenoids, one bit per solenoid. |
The documentation for this class was generated from the following files: