ESPHome 2026.1.2
Loading...
Searching...
No Matches
esphome::spi::NullPin Class Reference

A pin to replace those that don't exist. More...

#include <spi.h>

Inheritance diagram for esphome::spi::NullPin:
esphome::GPIOPin

Public Member Functions

void setup () override
 
void pin_mode (gpio::Flags flags) override
 
gpio::Flags get_flags () const override
 
bool digital_read () override
 
void digital_write (bool value) override
 
size_t dump_summary (char *buffer, size_t len) const override
 
- Public Member Functions inherited from esphome::GPIOPin

Static Protected Attributes

static GPIOPin *const NULL_PIN = new NullPin()
 

Additional Inherited Members

- Data Fields inherited from esphome::GPIOPin
virtual ESPDEPRECATED("Override dump_summary(char*, size_t) instead. Will be removed in 2026.7.0.", "2026.1.0") virtual std boo is_internal )()
 Get a summary of this pin as a string.
 

Detailed Description

A pin to replace those that don't exist.

Definition at line 105 of file spi.h.

Member Function Documentation

◆ digital_read()

bool esphome::spi::NullPin::digital_read ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 119 of file spi.h.

◆ digital_write()

void esphome::spi::NullPin::digital_write ( bool value)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 121 of file spi.h.

◆ dump_summary()

size_t esphome::spi::NullPin::dump_summary ( char * buffer,
size_t len ) const
inlineoverridevirtual

Reimplemented from esphome::GPIOPin.

Definition at line 123 of file spi.h.

◆ get_flags()

gpio::Flags esphome::spi::NullPin::get_flags ( ) const
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 117 of file spi.h.

◆ pin_mode()

void esphome::spi::NullPin::pin_mode ( gpio::Flags flags)
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 115 of file spi.h.

◆ setup()

void esphome::spi::NullPin::setup ( )
inlineoverridevirtual

Implements esphome::GPIOPin.

Definition at line 113 of file spi.h.

Field Documentation

◆ NULL_PIN

GPIOPin *const esphome::spi::NullPin::NULL_PIN = new NullPin()
staticprotected

Definition at line 130 of file spi.h.


The documentation for this class was generated from the following files: