Skip to content

Instantly share code, notes, and snippets.

View michaelsarduino's full-sized avatar

michaelsarduino

View GitHub Profile
/***************************************************************************
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.
#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);
}
#include <ESP8266WiFi.h>
const char* ssid = "**************";
const char* password = "*************";
char server[] = "weather.yahooapis.com"; //Webserver
WiFiClient client;
String website;
void setup() {
#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);
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
char ssid[] = "************";
char pass[] = "**************";
unsigned int localPort = 2390;
IPAddress timeServer(129, 6, 15, 28);
#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();
#include <dht11.h>
#include <VirtualWire.h>
dht11 DHT11;
#define DHT11PIN 3
void setup()
{
vw_set_ptt_inverted(true);
#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;
#include <dht11.h>
dht11 DHT11;
#define DHT11PIN 2
void setup()
{
Serial.begin(115200);
}
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;