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 ir_sensor_1 14 | |
#define ir_sensor_2 15 | |
#define ir_sensor_3 16 | |
#define ir_sensor_4 17 | |
#define ir_sensor_5 18 | |
#define ir_sensor_6 19 | |
#define led1 2 | |
#define led2 3 | |
#define led3 4 | |
#define led4 5 |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <WiFi.h> | |
#include <time.h> | |
#define SCREEN_WIDTH 128 | |
#define SCREEN_HEIGHT 64 |
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 <ESP8266HTTPClient.h> | |
#include <WiFiClient.h> | |
//#include <ArduinoJson.h> | |
#include <WiFiUdp.h> | |
WiFiUDP udp; | |
const int Port = 5000; | |
char Packet[80]; |
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 <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#include <WiFi.h> | |
#include <HTTPClient.h> | |
#include <ArduinoJson.h> | |
#define SCREEN_WIDTH 128 |
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 <SoftwareSerial.h> | |
#include <Servo.h> | |
#define motor_A_1 2 | |
#define motor_A_2 4 | |
#define motor_B_1 7 | |
#define motor_B_2 8 | |
#define motor_C_1 12 | |
#define motor_C_2 13 | |
#define HC12_Tx_pin 19 | |
#define HC12_Rx_pin 18 |
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 <SoftwareSerial.h> | |
#define led 13 | |
#define btn1 0 | |
#define btn2 1 | |
#define btn3 2 | |
#define btn4 3 | |
#define btn5 4 | |
#define btn6 5 | |
#define btn7 6 | |
#define btn8 7 |
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 "ThingSpeak.h" | |
#include <ESP8266WiFi.h> | |
const int trig = D1; | |
const int echo = D2; | |
#define redLed D3 | |
#define grnLed D4 | |
unsigned long channelID = REPLACE_WITH_YOUR_THINGSPEAK_CHANNEL_ID; | |
const char * write_api = "REPLACE_WITH_YOUR_THINGSPEAK_WRITE_API_KEY"; |
NewerOlder