43 bool getL(
bool pullup =
false)
46 pinMode(_pin1, INPUT_PULLUP);
48 pinMode(_pin1, INPUT);
50 return digitalRead(_pin1);
61 bool getR(
bool pullup =
false)
64 pinMode(_pin2, INPUT_PULLUP);
66 pinMode(_pin2, INPUT);
68 return digitalRead(_pin2);
78 void setL(
bool level = HIGH)
80 pinMode(_pin1, OUTPUT);
81 digitalWrite(_pin1, level);
91 void setR(
bool level = HIGH)
93 pinMode(_pin2, OUTPUT);
94 digitalWrite(_pin2, level);
104 pinMode(_pin1, OUTPUT);
105 digitalWrite(_pin1, !digitalRead(_pin1));
115 pinMode(_pin2, OUTPUT);
116 digitalWrite(_pin2, !digitalRead(_pin2));
Header file for the DHT11 sensor interface library.
Lightweight library for working with 1-Wire Dallas DS18B20 thermometers.
A library for interfacing with the Grove Ultrasonic Ranger sensor.
Handling MiniR4.Dn HC-04 Ultrasonic functions.
A class for interfacing with Grove Ultrasonic Ranger.
A template class to interface with the DHT11 temperature & humidity sensor.
Template class for interfacing with DS18B20 temperature sensors.
Class for handling digital input and output operations.
bool getR(bool pullup=false)
Reads the state of the second pin.
MiniR4DHT11< PIN1, PIN2 > DHT11
bool getL(bool pullup=false)
Reads the state of the first pin.
MiniR4DS18B20< PIN1, PIN2 > DS18B20
void toggleR()
Toggles the state of the second pin.
MiniR4HC04< PIN1, PIN2 > US
MiniR4DS18B20< PIN2, PIN1 > MXOnewireDT
void setL(bool level=HIGH)
Sets the level of the first pin.
void setR(bool level=HIGH)
Sets the level of the second pin.
void toggleL()
Toggles the state of the first pin.
MiniR4DHT11< PIN2, PIN1 > MXDHT
MiniR4_Grove_US< PIN1, PIN2 > GroveUS
Class for controlling the HC-SR04 ultrasonic sensor.