Skip to content

Instantly share code, notes, and snippets.

View squix78's full-sized avatar

Daniel Eichhorn squix78

View GitHub Profile
mvn archetype:create-from-project
const char* WIFI_SSID = "yourssid";
const char* WIFI_PWD = "yourpassw0rd";
// WIFI
const char* WIFI_SSID = "yourssid";
const char* WIFI_PWD = "yourpassw0rd";
// Setup
const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
// Display Settings
const int I2C_DISPLAY_ADDRESS = 0x3c;
const int SDA_PIN = D3;
/***************************
* Begin Settings
**************************/
const char* ssid = "yourssid";
const char* password = "yourpassw0rd";
const char* host = "api.thingspeak.com";
//Thingspeak Settings
const String THINGSPEAK_CHANNEL_ID = "67284";
const String THINGSPEAK_API_READ_KEY = "L2VIW20QVNZJBLAK";
import processing.serial.*;
int lf = 10; // Linefeed in ASCII
String myString = null;
Serial myPort; // The serial port
int rad = 5; // Width of the shape
void setup() {
size(1024, 768);
noStroke();
// Wii Remote IR sensor test sample code by kako http://www.kako.com
// modified output for Wii-BlobTrack program by RobotFreak http://www.letsmakerobots.com/user/1433
// modified for http://DFRobot.com by Lumi, Jan. 2014
// Adapted 2016 by D. Eichhorn for ESP8266 http://blog.squix.ch
#include <Wire.h>
int IRsensorAddress = 0xB0;
//int IRsensorAddress = 0x58;
int slaveAddress;
#include <DHT.h>
/**The MIT License (MIT)
Copyright (c) 2016 by Daniel Eichhorn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
[..]
void ExampleListener::key(String key) {
currentKey_ = key;
}
void ExampleListener::value(String key) {
if (currentKey_ == "name") {
name_ = value;
} else if (currentKey_ == "city") {
city_ = value;
class JsonListener {
public:
virtual void whitespace(char c) = 0;
virtual void startDocument() = 0;
virtual void key(String key) = 0;
virtual void value(String value) = 0;
virtual void endArray() = 0;
virtual void endObject() = 0;
virtual void endDocument() = 0;
virtual void startArray() = 0;