#include <Wire.h> //I2C for OLED
#include <Adafruit_GFX.h> //grafix library for OLED
#include <Adafruit_SSD1306.h> //OLED Driver
#define anInput A0 //analog feed from MQ135
#define digTrigger 2 //digital feed from MQ135
#define co2Zero 55 //calibrated CO2 0 level
#define led 9 //led on pin 9
#define OLED_RESET -1 //OLED reset on lin 4
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET); //create instance of OLED called display
void setup() {
pinMode(anInput,INPUT); //MQ135 analog feed set for input
pinMode(digTrigger,INPUT); //MQ135 digital feed set for input
pinMode(led,OUTPUT); //led set for output
Serial.begin(9600); //serial comms for debuging
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //begin display @ hex addy 0x3C
display.display(); //show buffer
display.clearDisplay(); //clear buffer
}
void loop() {
void loop() { }