libkipr  1.0.0
kipr::digital::Digital Class Reference

#include <digital.hpp>

Inheritance diagram for kipr::digital::Digital:
Collaboration diagram for kipr::digital::Digital:

Public Member Functions

 Digital (unsigned char port)
 
void setValue (bool value)
 
void setOutput (bool output)
 
bool isOutput () const
 
void setPullup (bool pullup)
 
bool pullup () const
 
virtual bool value () const
 
- Public Member Functions inherited from kipr::sensor::Sensor< bool >
virtual ~Sensor ()
 

Constructor & Destructor Documentation

◆ Digital()

kipr::digital::Digital::Digital ( unsigned char  port)

Member Function Documentation

◆ isOutput()

bool kipr::digital::Digital::isOutput ( ) const

◆ pullup()

bool kipr::digital::Digital::pullup ( ) const

◆ setOutput()

void kipr::digital::Digital::setOutput ( bool  output)

◆ setPullup()

void kipr::digital::Digital::setPullup ( bool  pullup)

◆ setValue()

void kipr::digital::Digital::setValue ( bool  value)

◆ value()

virtual bool kipr::digital::Digital::value ( ) const
virtual

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