Skip to content

Instantly share code, notes, and snippets.

View Corinrypkema's full-sized avatar
🎯
Focusing

Corin Rypkema Corinrypkema

🎯
Focusing
View GitHub Profile
@Corinrypkema
Corinrypkema / gist:7314010
Last active December 27, 2015 10:49
Doorbell
/* system example : DIR */
#include <stdio.h> /* printf */
#include <stdlib.h> /* system, NULL, EXIT_FAILURE */
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <windows.h>
using namespace std;
@Corinrypkema
Corinrypkema / BlinkAll.c
Created December 4, 2015 03:24
Arduino Blink All Pins
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// Pin 11 has the LED on Teensy 2.0
// Pin 6 has the LED on Teensy++ 2.0
@Corinrypkema
Corinrypkema / i2ctest.c
Last active December 4, 2015 04:04
I2C example from arduino with modifications for LightBlue(TM) testing
#include <Wire.h>
byte val = 0;
void setup() {
Wire.begin(8); // join i2c bus with address #8
Wire.onRequest(requestEvent); // register event
}
void loop() {
delay(1000);