Skip to content

Instantly share code, notes, and snippets.

@pinski1
pinski1 / ESP8266_Dash_Button.ino
Last active October 16, 2015 13:49
An Amazon Dash-like button tied into IFTTT
/**
* Simple IoT button using the If This Then That(IFTTT) Maker Channel, an
* ESP8266-01 and lit arcade button.
*
* For connections advice:
* http://iot-playground.com/2-uncategorised/38-esp8266-and-arduino-ide-blink-example
*/
#include <ESP8266WiFi.h>
@pinski1
pinski1 / BasicGroundStation.ino
Last active September 28, 2015 06:43
Basic sketches to send and receive VGA camera images (as jpgs) via an RFM22 radio.
// rf22_server.pde
// -*- mode: C++ -*-
// Example sketch showing how to create a simple messageing server
// with the RH_RF22 class. RH_RF22 class does not provide for addressing or
// reliability, so you should only use RH_RF22 if you do not need the higher
// level messaging abilities.
// It is designed to work with the other example rf22_client
// Tested on Duemilanove, Uno with Sparkfun RFM22 wireless shield
// Tested on Flymaple with sparkfun RFM22 wireless shield
// Tested on ChiKit Uno32 with sparkfun RFM22 wireless shield
/* Pin Map */
#define MOTOR_L_IN_1 16
#define MOTOR_L_IN_2 15
#define MOTOR_L_PWM 22
#define MOTOR_STBY 14
#define MOTOR_R_IN_1 17
#define MOTOR_R_IN_2 18
#define MOTOR_R_PWM 23
#define MOTOR_L_A 11
#define MOTOR_L_B 12
@pinski1
pinski1 / I2C Master
Created June 20, 2012 14:45
An I2C Master peripheral written in VHDL.
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
ENTITY i2c IS
PORT(
clock_L : IN STD_LOGIC; -- 400kHz
scl_H : INOUT STD_LOGIC;
sda_H : INOUT STD_LOGIC;
int_i2c_L : OUT STD_LOGIC;