Skip to content

Instantly share code, notes, and snippets.

View jondontdoit's full-sized avatar

Jonathan Warren jondontdoit

View GitHub Profile
@jondontdoit
jondontdoit / bluetooth.c
Created November 13, 2016 03:29
Bluetooth Mate Tutorial
/***********************
Bluetooth test program
***********************/
int counter = 0;
int incomingByte;
void setup() {
Serial.begin(115200);
}
@jondontdoit
jondontdoit / DS1077.c
Created November 13, 2016 03:01
Using a DS1077 Programmable Oscillator with Arduino
#include <Wire.h>
const int ds_address = 0xB0 >> 1; //DS1077 default address
const byte freq_pin = 7; //read frequency on this pin
void setup() {
Wire.begin();
Serial.begin(9600);
pinMode(freq_pin, INPUT);
@jondontdoit
jondontdoit / strobulon.c
Created November 13, 2016 02:48
Strobulon LED Helmet
//We always have to include the library
#include "LedControl.h"
/*
******************************************
STROBE HELMET - Main
******************************************
Pin 12 is connected to the DataIn [BLUE]
Pin 11 is connected to the CLK [GREEN]
Pin 10 is connected to LOAD [YELLOW]