Plaquette
 
Loading...
Searching...
No Matches
pq::PinConfig Class Reference

Superclass for pin-based components. More...

#include <PqCore.h>

Inheritance diagram for pq::PinConfig:

Public Member Functions

 PinConfig (uint8_t pin, uint8_t mode)
 
uint8_t pin () const
 Returns the pin this component is attached to.
 
uint8_t mode () const
 Returns the mode of the component.
 
virtual void mode (uint8_t mode)
 Changes the mode of the component.
 

Protected Attributes

uint8_t _pin
 
uint8_t _mode
 

Detailed Description

Superclass for pin-based components.

Member Function Documentation

◆ mode()

virtual void pq::PinConfig::mode ( uint8_t  mode)
inlinevirtual

Changes the mode of the component.

Reimplemented in pq::DigitalIn, and pq::DigitalOut.


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