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
//CJMCU-8128 CCS811 + HDC1080 + BMP280 (banggood.com) | |
#include <SparkFunCCS811.h> //Click here to get the library: http://librarymanager/All#SparkFun_CCS811 | |
#include <SparkFunBME280.h> //Click here to get the library: http://librarymanager/All#SparkFun_BME280 | |
#include <ClosedCube_HDC1080.h> //Click here to get the library: http://librarymanager/All#ClosedCube_HDC1080 | |
//#define CCS811_ADDR 0x5B //Default I2C Address | |
#define CCS811_ADDR 0x5A //Alternate I2C Address | |
CCS811 myCCS811(CCS811_ADDR); |
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 <EEPROM.h> | |
void writeString(int address, String data) | |
{ | |
int stringSize = data.length(); | |
for(int i=0;i<_size;i++) | |
{ | |
EEPROM.write(address+i, data[i]); | |
} | |
EEPROM.write(address + stringSize,'\0'); //Add termination null character |
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
// by nicu gherasim | |
#include <Arduino.h> | |
#include "RTClib.h" | |
// board related pins | |
const int ledPin = LED_BUILTIN; // the number of the LED pin | |
// relays output | |
const int REL_1 = 16; | |
const int REL_2 = 17; |