This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************** | |
Bluetooth test program | |
***********************/ | |
int counter = 0; | |
int incomingByte; | |
void setup() { | |
Serial.begin(115200); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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] |