This file contains hidden or 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
#!/usr/bin/env python | |
import cv2 | |
import imutils | |
from imutils.video.pivideostream import PiVideoStream | |
import numpy as np | |
import json | |
import time | |
import datetime | |
import os |
This file contains hidden or 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
<SoftwareSerial.h> | |
SoftwareSerial rs485(2, 3); | |
#define RS485_TX 2 | |
#define RS485_RX 3 | |
#define RS485_EN 6 | |
#define VOLTAGE_READ A5 | |
#define LED_RS485 A3 | |
#define LED_DIPSWITCH A2 | |
#define LED_MOSFET A1 |
This file contains hidden or 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 <SPI.h> | |
#include <SD.h> | |
#include <Wire.h> | |
#include "RTClib.h" | |
#include <SocketIOClient.h> | |
#include <ESP8266HTTPClient.h> | |
#include <ArduinoJson.h> |
This file contains hidden or 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> | |
#define SOFT_FAST | |
#define MAG_ADDRESS 0x30 | |
float magX, magY, magZ; | |
void setup() { | |
Wire.begin(); | |
Serial.begin(9600); | |
This file contains hidden or 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 <SoftwareSerial.h> | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define OLED_RESET 4 | |
Adafruit_SSD1306 display(OLED_RESET); | |
NewerOlder