Skip to content

Instantly share code, notes, and snippets.

@seco
seco / ESP8266-nRF24L01.ino
Created November 30, 2015 00:01 — forked from crcastle/ESP8266-nRF24L01.ino
Using an Adafruit Huzzah ESP8266 with nRF24L01+ as a (one-way) internet gateway for several nRF24L01+ sensor nodes
#include <SPI.h>
#include <RF24Network.h>
#include <RF24.h>
#include <ESP8266WiFi.h>
const char* ssid = "ssid";
const char* password = "password";
const char* host = "coolapp.herokuapp.com";
@seco
seco / esp8266-dht22-blynk.ino
Created February 14, 2016 10:56 — forked from anoochit/esp8266-dht22-blynk.ino
esp8266-dht22-blynk
/*
* This sketch demonstrates how to scan WiFi networks.
* The API is almost the same as with the WiFi Shield library,
* the most obvious difference being the different file you need to include:
*/
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
@seco
seco / youtube-vimeo-thumbnail.js
Created August 1, 2016 06:01 — forked from micalexander/youtube-vimeo-thumbnail.js
jquery:snippet:Get youtube or vimeo thumbnail url
function get_video_thumb(url, callback){
var id = get_video_id(url);
if (id['type'] == 'y') {
return processYouTube(id);
} else if (id['type'] == 'v') {
$.ajax({
url: 'http://vimeo.com/api/v2/video/' + id['id'] + '.json',
dataType: 'jsonp',
success: function(data) {
@seco
seco / Energy_Monitor_Real.ino
Created August 10, 2016 23:48 — forked from whatnick/Energy_Monitor_Real.ino
ESP8266 Energy Monitor Real Power
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*
@seco
seco / add-option-to-dropdown.js
Created September 27, 2016 03:20 — forked from paulund/add-option-to-dropdown.js
Add and Remove Options in Select using jQuery
$("#selectBox").append('<option value="option6">option6</option>');
@seco
seco / Energy_Monitor.ino
Created November 1, 2016 00:44 — forked from whatnick/Energy_Monitor.ino
ESP8266 Energy Monitor
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*
@seco
seco / esp32.md
Created November 17, 2016 02:38 — forked from morganrallen/esp32.md
ESP32 hacking notes

Basic hookup

As I plan to make a custom breakout board I wanted to solder as few connections as possible. I was able to boot the device, with UART (out at least) soldering the following.

PIN NAME
0 GND
1 3V3
2 EN
@seco
seco / i2s_stream.c
Created December 14, 2016 12:19 — forked from cnlohr/i2s_stream.c
ESP32 I2S C Code Example/Snippet
//Almost entirelly lifted directly from https://github.com/igrr/esp32-cam-demo
//Just clocked a little differently and has chained buffers.
//This totes works with the I2S bus on the ESP32 for READING 16 wires simultaneously.
//Can be clocked off of I2S's internal controller or an external clock.
#define I2S_D0 4
#define I2S_D1 5
#define I2S_D2 18
#define I2S_D3 19
#define I2S_D4 36
Blynk Web Dashboard
------
A [Pen](http://codepen.io/shrikantgg/pen/oYgoxm) by [shrikant](http://codepen.io/shrikantgg) on [CodePen](http://codepen.io/).
[License](http://codepen.io/shrikantgg/pen/oYgoxm/license).
// how long each led stays on for
int delayTime = 1;
//how long between each
int charBreak = 3;
//how long to wait after the message is finished before it repeats
int resetTime = 20;
int LED1 = 2;
int LED2 = 3;
int LED3 = 4;