![]() |
OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
|
Use a single-color LED as a shift light indicator. More...
#include <SimWheelUI.hpp>
Public Member Functions | |
| SimpleShiftLight (OutputGPIO ledPin) | |
| Create a simple "shift" light. | |
| virtual void | onStart () override |
| Called just once after initialization. | |
| virtual void | onConnected () override |
| Notify device is connected. | |
| virtual void | onTelemetryData (const TelemetryData *pTelemetryData) override |
| Notify new telemetry data. | |
| virtual void | serveSingleFrame (uint32_t elapsedMs) override |
| Draw a single frame. | |
| virtual void | shutdown () override |
| Cut power to the UI hardware. | |
| virtual uint8_t | getMaxFPS () override |
| Get the maximum FPS supported by the underlying hardware. | |
| virtual uint16_t | getStackSize () override |
| Get the stack size required by this user interface. | |
Public Member Functions inherited from AbstractUserInterface | |
| AbstractUserInterface (const AbstractUserInterface &)=delete | |
| AbstractUserInterface & | operator= (const AbstractUserInterface &)=delete |
| virtual void | onBitePoint (uint8_t bitePoint) |
| Notify a change in the current bite point. | |
| virtual void | onBLEdiscovering () |
| Notify device is in discovery mode. | |
| virtual void | onLowBattery () |
| Notify low battery. | |
| virtual void | onSaveSettings () |
| Notify that user settings have been saved to flash memory. | |
Additional Inherited Members | |
Public Attributes inherited from AbstractUserInterface | |
| bool | requiresPowertrainTelemetry = false |
| Set to true to receive and use powertrain telemetry data. | |
| bool | requiresECUTelemetry = false |
| Set to true to receive and use ECU telemetry data. | |
| bool | requiresRaceControlTelemetry = false |
| Set to true to receive and use race control telemetry data. | |
| bool | requiresGaugeTelemetry = false |
| Set to true to receive and use telemetry data for gauges. | |
Protected Member Functions inherited from AbstractUserInterface | |
| uint32_t | frameTimer (uint32_t &timerVariable, uint32_t elapsedTimeMs, uint32_t timeLimitMs) |
| Simple timer. | |
Use a single-color LED as a shift light indicator.
Definition at line 48 of file SimWheelUI.hpp.
| SimpleShiftLight::SimpleShiftLight | ( | OutputGPIO | ledPin | ) |
Create a simple "shift" light.
| ledPin | GPIO pin where the LED is attached to. |
|
inlineoverridevirtual |
Get the maximum FPS supported by the underlying hardware.
Reimplemented from AbstractUserInterface.
Definition at line 64 of file SimWheelUI.hpp.
|
inlineoverridevirtual |
Get the stack size required by this user interface.
Reimplemented from AbstractUserInterface.
Definition at line 65 of file SimWheelUI.hpp.
|
overridevirtual |
Notify device is connected.
Reimplemented from AbstractUserInterface.
|
overridevirtual |
Called just once after initialization.
Reimplemented from AbstractUserInterface.
|
overridevirtual |
Notify new telemetry data.
| pTelemetryData | Pointer to telemetry data. Can be null. Safe to store for later use. |
pTelemetryData is null when no telemetry data has been received in the previous two seconds. May be used to turn the display off.Reimplemented from AbstractUserInterface.
|
overridevirtual |
Draw a single frame.
| elapsedMs | Elapsed milliseconds since last call. |
Reimplemented from AbstractUserInterface.
|
overridevirtual |
Cut power to the UI hardware.
Reimplemented from AbstractUserInterface.