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 <Wire.h> | |
String cmd = ""; | |
byte GPSI2CAddr = 8; | |
void setup() { | |
Wire.begin(GPSI2CAddr); | |
Wire.onRequest(requestEvent); | |
Wire.onReceive(receiveEvent); | |
Serial.begin(9600); |
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 <SSD1306.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ArduinoJson.h> | |
SSD1306 display(0x3c, D3, D4); | |
ESP8266WiFiMulti WiFiMulti; | |
void setup() { |
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 <TelegramBotClient.h> | |
#include <WiFi.h> | |
#include <WiFiClientSecure.h> | |
#define PIR_PIN 25 | |
#define LED_PIN 22 | |
const String botToken = "token"; | |
WiFiClientSecure sslPollClient; | |
TelegramBotClient client(botToken, sslPollClient); |
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
#define INTERRUPT_PIN GPIO_NUM_25 | |
int BAUD_RATE = 9600; | |
String chatId = "192296003"; | |
String token = "*"; | |
esp_sleep_wakeup_cause_t wakeup_reason; | |
HardwareSerial SIM800(1); | |
byte RESET_PIN = 5; | |
byte LED_PIN = 22; |
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 <Arduino.h> | |
#include <WiFi.h> | |
#include <WiFiMulti.h> | |
#include <WiFiClientSecure.h> | |
#include <WebSocketsServer.h> | |
#include <MPU9250_asukiaaa.h> | |
#define SDA_PIN 21 |
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 <MicroNMEA.h> | |
#include <WiFi.h> | |
#include <WiFiMulti.h> | |
#include <WebSocketsServer.h> | |
#define LED_BUILTIN 22 | |
WiFiMulti WiFiMulti; | |
WebSocketsServer webSocket = WebSocketsServer(80); | |
HardwareSerial Serial1(1); |
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 <SPI.h> | |
#include <RH_RF69.h> | |
#include <SSD1306.h> | |
RH_RF69 rf69(D1, D8); | |
SSD1306 display(0x3c, D3, D4); | |
int lostPackets = 0; | |
int rcvdPackets = 0; | |
byte BUZZER = D2; |
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 <MicroNMEA.h> | |
#include "esp_deep_sleep.h" | |
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */ | |
#define TIME_TO_SLEEP 60 /* Time ESP32 will go to sleep (in seconds) */ | |
char nmeaBuffer[100]; | |
MicroNMEA nmea(nmeaBuffer, sizeof(nmeaBuffer)); | |
HardwareSerial SIM800(2); | |
HardwareSerial GPS(1); |
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 <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ThingSpeak.h> | |
#include "Adafruit_CCS811.h" | |
unsigned long myChannelNumber = *; | |
const char * myWriteAPIKey = "*"; | |
byte co2FieldNum = 7; | |
byte TVOCFieldNum = 8; | |
uint16_t co2Val = 0; |
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
static uint16_t width = 128; | |
static uint16_t height = 64; | |
static uint8_t bits[] PROGMEM = { | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, |