This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pin pinA - CLK pin, | |
// Pin pinB - DT pin | |
// rotate(int i) - callback receiving -1 or 1 | |
inputA = gpio.provisionDigitalInputPin(pinA, "PinA", PinPullResistance.PULL_UP); | |
inputB = gpio.provisionDigitalInputPin(pinB, "PinB", PinPullResistance.PULL_UP); | |
inputA.addListener(new GpioPinListenerDigital() { | |
int lastA; | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <DHT.h> | |
#include <SevSeg.h> | |
// DHT data wire connected on A0 | |
#define DHTPIN 14 | |
#define DHTTYPE DHT11 | |
SevSeg sevseg; | |
DHT dht(DHTPIN, DHTTYPE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <virtuabotixRTC.h> | |
#include <SevSeg.h> | |
SevSeg sevseg; | |
// Clock DS1302 on analog pins 0 to 2 | |
virtuabotixRTC myRTC(14, 15, 16); | |
void setup() { |
NewerOlder