LCC Fusion Project 1.0
LCC Automation
Loading...
Searching...
No Matches
PstTestPins.h File Reference

Builder / installer-friendly GPIO self-test helpers for ESP32-based LCC Fusion cards. More...

#include <Arduino.h>
#include <SerialIo.h>
#include <CardMri.h>
#include <LccFusionCore/Adafruit_MCP23017.h>
Include dependency graph for PstTestPins.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PstTestPins
 One-stop pin self-test utility with a single dispatcher entry point. More...
 

Detailed Description

Builder / installer-friendly GPIO self-test helpers for ESP32-based LCC Fusion cards.

This header defines a small utility class, PstTestPins, that runs quick sanity checks on pins without requiring fixtures. It prints clear, non-jargony messages via a global g_serialIO.

Typical usage:

#define I2C_SCL_PIN
I2C Bus pins (ESP32 supports 2 i2c HW buses) (each card has a selector switch to configure the i2c bu...
Definition: Config.h:142
#define I2C_SDA_PIN
I2C Bus pins (ESP32 supports 2 i2c HW buses) (each card has a selector switch to configure the i2c bu...
Definition: Config.h:141
One-stop pin self-test utility with a single dispatcher entry point.
Definition: PstTestPins.h:45
@ I2C_SCL
I²C clock line (idle HIGH)
@ I2C_SDA
I²C data line (idle HIGH)
bool testPin(uint8_t pin, Type type, const char *label=nullptr) const
Run the appropriate self-test(s) for a pin based on its Type.
Definition: PstTestPins.h:151

Notes

  • Designed around ESP32 (DevKit-C class). Input-only pins (GPIO 34-39) are handled gracefully.
  • Tests avoid electrical jargon like "rail”; messages target end users (builders / installers).
Warning
This file expects a global/static SerialIO-like object named g_serialIO that provides print(...) and sprintf(fmt, ...) methods compatible with Arduino Print.

Definition in file PstTestPins.h.