|
|
| RemoteGPIO (Stream *stream) |
| int | analogRead (pin_size_t pinNumber) |
| | Read the value from the specified analog pin.
|
| void | analogReference (uint8_t mode) |
| | Configure the reference voltage used for analog input.
|
| void | analogWrite (pin_size_t pinNumber, int value) |
| | Write an analog value (PWM wave) to a pin.
|
| virtual void | analogWriteFrequency (pin_size_t pin, uint32_t freq) |
| | Set the PWM frequency for analogWrite() on the specified pin.
|
| virtual void | analogWriteResolution (uint8_t bits) |
| | Set the resolution of the analogWrite() values.
|
| PinStatus | digitalRead (pin_size_t pinNumber) |
| | Read the value from a specified digital pin.
|
| void | digitalWrite (pin_size_t pinNumber, PinStatus status) |
| | Write a HIGH or LOW value to a digital pin.
|
| virtual void | noTone (uint8_t pinNumber) |
| | Stop the generation of a square wave triggered by tone().
|
|
| operator bool () |
| void | pinMode (pin_size_t pinNumber, PinMode pinMode) |
| | Configure the specified pin to behave as an input or output.
|
| virtual unsigned long | pulseIn (uint8_t pinNumber, uint8_t state, unsigned long timeout=1000000L) |
| | Read a pulse (HIGH or LOW) on a pin.
|
| virtual unsigned long | pulseInLong (uint8_t pinNumber, uint8_t state, unsigned long timeout=1000000L) |
| | Alternative to pulseIn() which is better at handling long pulses.
|
|
void | setStream (Stream *stream) |
| virtual void | tone (uint8_t pinNumber, unsigned int frequency, unsigned long duration=0) |
| | Generate a square wave of the specified frequency on a pin.
|
Remote GPIO implementation that operates over a communication stream.
RemoteGPIO provides GPIO functionality by forwarding all operations to a remote GPIO controller via a communication stream (serial, network, etc.). This enables GPIO operations to be performed on remote hardware while maintaining the standard HardwareGPIO interface.
Key features:
- Complete HardwareGPIO interface implementation
- Stream-based remote communication protocol
- Digital I/O operations (pinMode, digitalWrite, digitalRead)
- Analog I/O operations (analogRead, analogWrite, analogReference)
- PWM and tone generation (analogWrite, tone, noTone)
- Pulse measurement and timing functions (pulseIn, pulseInLong)
- Real-time bidirectional communication with remote GPIO hardware
The class uses HardwareService for protocol handling and can work with any Stream implementation (Serial, TCP, etc.) for remote connectivity.
- See also
- HardwareGPIO
-
HardwareService
-
Stream