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
/*************************************************************************** | |
This is a library example for the HMC5883 magnentometer/compass | |
Designed specifically to work with the Adafruit HMC5883 Breakout | |
http://www.adafruit.com/products/1746 | |
*** You will also need to install the Adafruit_Sensor library! *** | |
These displays use I2C to communicate, 2 pins are required to interface. |
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 <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
void setup() { | |
Serial.begin(115200); | |
lcd.begin(20, 4); | |
lcd.print("Tomorrow"); | |
delay(10000); | |
} |
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> | |
const char* ssid = "**************"; | |
const char* password = "*************"; | |
char server[] = "weather.yahooapis.com"; //Webserver | |
WiFiClient client; | |
String website; | |
void setup() { |
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 <Time.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
void setup() { | |
Serial.begin(115200); | |
lcd.begin(20, 4); | |
lcd.print("Time:"); | |
setTime(12,12,12, 12, 12, 12); |
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 <WiFiUdp.h> | |
char ssid[] = "************"; | |
char pass[] = "**************"; | |
unsigned int localPort = 2390; | |
IPAddress timeServer(129, 6, 15, 28); |
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 <LiquidCrystal.h> | |
#include <VirtualWire.h> | |
LiquidCrystal lcd(4, 9, 5, 13, 3, 2); | |
void setup() { | |
lcd.begin(20, 4); | |
lcd.setCursor(0,0); | |
lcd.print("outdoor temperature:"); | |
vw_rx_start(); |
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 <dht11.h> | |
#include <VirtualWire.h> | |
dht11 DHT11; | |
#define DHT11PIN 3 | |
void setup() | |
{ | |
vw_set_ptt_inverted(true); |
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 <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
String temp = "Bisher noch nichts empfangen"; | |
const char* ssid = "***************"; | |
const char* password = "***************"; | |
MDNSResponder mdns; |
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 <dht11.h> | |
dht11 DHT11; | |
#define DHT11PIN 2 | |
void setup() | |
{ | |
Serial.begin(115200); | |
} |
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
int motor1_1 = 0; | |
int motor1_2 = 1; | |
int motor1_speed = 3; | |
int motor2_1 = 2; | |
int motor2_2 = 4; | |
int motor2_speed = 5; | |
int motor3_1 = 6; | |
int motor3_2 = 7; | |
int motor3_speed = 9; | |
int motor4_1 = 8; |