Update to match fbc883c..b7e6d06

This commit is contained in:
brentru 2025-08-25 11:40:50 -04:00
parent bf68aed49c
commit 6d5f95132b
23 changed files with 42 additions and 24 deletions

View file

@ -52,6 +52,8 @@ bool DisplayController::Handle_Display_AddOrReplace(
wippersnapper_display_v1_DisplayAddOrReplace_config_epd_tag) {
did_begin = display->beginEPD(&msgAdd->config.config_epd,
&msgAdd->interface_type.spi_epd);
} else if (msgAdd->which_config == wippersnapper_display_v1_DisplayAddOrReplace_config_tft_tag) {
did_begin = display->beginTft(&msgAdd->config.config_tft, &msgAdd->interface_type.spi_tft);
} else {
WS_DEBUG_PRINTLN("[display] Unsupported display configuration type!");
return false;

View file

@ -199,7 +199,20 @@ bool DisplayHardware::beginEPD(
return false;
}
return true; // Configuration successful
return true;
}
/*!
@brief Attempts to configure and initialize a TFT display
@param config
Pointer to the TFT configuration structure.
@param spi_config
Pointer to the SPI configuration structure for TFT.
@return True if configuration was successful, False otherwise.
*/
bool beginTft(wippersnapper_display_v1_TftConfig *config, wippersnapper_display_v1_TftSpiConfig *spi_config) {
// TODO
return false;
}
/*!

View file

@ -40,6 +40,8 @@ public:
wippersnapper_display_v1_DisplayType getType();
bool beginEPD(wippersnapper_display_v1_EPDConfig *config,
wippersnapper_display_v1_EpdSpiConfig *spi_config);
bool beginTft(wippersnapper_display_v1_TftConfig *config,
wippersnapper_display_v1_TftSpiConfig *spi_config);
//
// API for Adafruit_GFX that abstracts hardware functionality

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/description/v1/description.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_DESCRIPTION_V1_WIPPERSNAPPER_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_DESCRIPTION_V1_WIPPERSNAPPER_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/display/v1/display.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_DISPLAY_V1_WIPPERSNAPPER_DISPLAY_V1_DISPLAY_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_DISPLAY_V1_WIPPERSNAPPER_DISPLAY_V1_DISPLAY_PB_H_INCLUDED
@ -15,7 +15,8 @@
typedef enum _wippersnapper_display_v1_DisplayType {
wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_UNSPECIFIED = 0,
wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_OLED = 1,
wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_EPD = 2
wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_EPD = 2,
wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_TFT = 3
} wippersnapper_display_v1_DisplayType;
typedef enum _wippersnapper_display_v1_EPDMode {
@ -99,8 +100,8 @@ typedef struct _wippersnapper_display_v1_DisplayWrite {
/* Helper constants for enums */
#define _wippersnapper_display_v1_DisplayType_MIN wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_UNSPECIFIED
#define _wippersnapper_display_v1_DisplayType_MAX wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_EPD
#define _wippersnapper_display_v1_DisplayType_ARRAYSIZE ((wippersnapper_display_v1_DisplayType)(wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_EPD+1))
#define _wippersnapper_display_v1_DisplayType_MAX wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_TFT
#define _wippersnapper_display_v1_DisplayType_ARRAYSIZE ((wippersnapper_display_v1_DisplayType)(wippersnapper_display_v1_DisplayType_DISPLAY_TYPE_TFT+1))
#define _wippersnapper_display_v1_EPDMode_MIN wippersnapper_display_v1_EPDMode_EPD_MODE_UNSPECIFIED
#define _wippersnapper_display_v1_EPDMode_MAX wippersnapper_display_v1_EPDMode_EPD_MODE_MONO

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/ds18x20/v1/ds18x20.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_DS18X20_V1_WIPPERSNAPPER_DS18X20_V1_DS18X20_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_DS18X20_V1_WIPPERSNAPPER_DS18X20_V1_DS18X20_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/i2c/v1/i2c.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/pin/v1/pin.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_PIN_V1_WIPPERSNAPPER_PIN_V1_PIN_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PIN_V1_WIPPERSNAPPER_PIN_V1_PIN_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/pixels/v1/pixels.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_PIXELS_V1_WIPPERSNAPPER_PIXELS_V1_PIXELS_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PIXELS_V1_WIPPERSNAPPER_PIXELS_V1_PIXELS_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/pwm/v1/pwm.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_PWM_V1_WIPPERSNAPPER_PWM_V1_PWM_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PWM_V1_WIPPERSNAPPER_PWM_V1_PWM_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/servo/v1/servo.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_SERVO_V1_WIPPERSNAPPER_SERVO_V1_SERVO_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_SERVO_V1_WIPPERSNAPPER_SERVO_V1_SERVO_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/signal/v1/signal.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_SIGNAL_V1_WIPPERSNAPPER_SIGNAL_V1_SIGNAL_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_SIGNAL_V1_WIPPERSNAPPER_SIGNAL_V1_SIGNAL_PB_H_INCLUDED

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#include "wippersnapper/uart/v1/uart.pb.h"
#if PB_PROTO_HEADER_VERSION != 40

View file

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 14:48:29 2025. */
/* Generated by nanopb-0.4.5-dev at Mon Aug 25 15:39:12 2025. */
#ifndef PB_WIPPERSNAPPER_UART_V1_WIPPERSNAPPER_UART_V1_UART_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_UART_V1_WIPPERSNAPPER_UART_V1_UART_PB_H_INCLUDED