Skip to content

Instantly share code, notes, and snippets.

View squix78's full-sized avatar

Daniel Eichhorn squix78

View GitHub Profile
@squix78
squix78 / table.md
Last active September 20, 2019 13:04
PCBWay LocoPCB PCBGogo Seeedstudio
Parts supplied by service Yes Yes Yes Yes
Parts supplied by customer Yes Yes Yes Yes
Mixed Yes Yes Yes Yes
Min. Order Quantity 5 5 5 5
Files Required Gerber, Pick&Place, BOM Gerber, BOM Gerber, BOM Gerber, BOM
Photo Review Yes No Yes N/A
Total Days 17 14 27 N/A
PCB Costs 38 5 5 N/A
/**
* ©2018 by Daniel Eichhorn - ThingPulse (https://thingpulse.com)
*/
#include <WiFi.h>
#include <HTTPClient.h>
#define IOT_HUB_NAME "IOT HUB NAME"
#define DEVICE_NAME "DEVICE NAME"
#define SAS_TOKEN "SAS TOKEN"
[..]
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;
#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
// 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;
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();
//Thingspeak Settings
const String THINGSPEAK_CHANNEL_ID = "67284";
const String THINGSPEAK_API_READ_KEY = "L2VIW20QVNZJBLAK";
/***************************
* Begin Settings
**************************/
const char* ssid = "yourssid";
const char* password = "yourpassw0rd";
const char* host = "api.thingspeak.com";
// 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;