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 <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
typedef unsigned int u32; | |
typedef unsigned long long u64; | |
//------------------------------------------------------------------------- | |
// WorkArea | |
//------------------------------------------------------------------------- |
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
void callLog(char name[]) | |
{ | |
Serial << "logging call" << endl; | |
File logData = SD.open("/contacts/log.TXT",FILE_WRITE); | |
Serial << logData.size() << endl; | |
logData.println(name); | |
logData.println(); |
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
void callLog() | |
{ | |
Serial << "logging call" << endl; | |
File logData = SD.open("/contacts/log.TXT",FILE_WRITE); | |
Serial << logData.size() << endl; | |
logData.println(ph); |
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 <PinChangeInt.h> | |
#define PIN1 2 | |
#define PIN2 3 | |
#define PIN3 4 | |
uint8_t latest_interrupted_pin; | |
uint8_t interrupt_count[20]={0}; // 20 possible arduino pins | |
int i; | |
void quicfunc() { |
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
/* | |
* rgb values are sent to the arduino board and as a comma seperated list of decimal codes of 0-255 | |
* for example rgb could look like this 213,89,46. | |
* This program accepts these codes form serial comm port and seperates rgb values using (,) comma as the seperator | |
* and sends them to the leds | |
*/ | |
// global variable declarations | |
int incomingByte = 0; // to hold incoming serial data |