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 <SPI.h> | |
#include <SD.h> | |
#include <EasyTransfer.h> | |
#define LENGTH_OF_ARRAY(x)((sizeof(x) / sizeof(x[0]))) | |
//create object | |
EasyTransfer ET; | |
//Timer | |
const long intervalFileRead = 5 * 1000; // seconds |
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
// libraries | |
#include <SPI.h> | |
#include <SdFat.h> | |
#include <SdFatUtil.h> | |
#include <SFEMP3Shield.h> | |
#define NUMBER_OF_TRACKS 5 | |
// initialize MP3 card | |
SdFat sd; |
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
#! /usr/bin/python | |
from __future__ import absolute_import | |
import sys, threading, argparse, pprint, logging, logging.handlers, os, __main__, platform | |
from socket import * | |
# Setup format for pprint. | |
pp = pprint.PrettyPrinter(indent=4) | |
BUFSIZE = 1024 |
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
# schematic - https://drive.google.com/open?id=1SUm5G0ulMR-NaRY3s6r-mbK_2PaoASEd | |
#define LENGTH_OF_ARRAY(x) ((sizeof(x)/sizeof(x[0]))) | |
// define pin locations | |
#define IR_RECV_PIN 2 | |
#define IR_LED_TX_PIN 3 | |
#define BUTTON_NOCAP_PIN 4 | |
#define BUTTON_BLK_PIN 5 | |
#define BUTTON_BLU_PIN 6 |
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
/* | |
* IrMagicWandDuelNeoPixel: IRrecvDump - dump details of IR codes with IRrecv | |
* https://gist.github.com/mpflaga/fe91612db2ed75d21489b2e17c08b387 | |
* IR detector/demodulator must be connected to the input RECV_PIN. | |
* IR Transmitter to JAM must be connected | |
* schematic https://drive.google.com/open?id=1Sr9TtA06r71xR5ZPSr_fqb461YxncRx6 | |
* Version 0.1 July, 2016 | |
* Author: 2016 Michael P. Flaga | |
* This is an alternative to the TinyIRduel.ino |
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 <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 6 | |
#define NUMPIXELS 200 | |
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
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 <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
#define PIN 6 | |
#define NUMPIXELS 500 | |
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); | |
int pos = 0; |
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
// For Leonardo or Arduino Micro Using Serial1 to USB Serial | |
#define TXB8 0 | |
#define RXB8 1 | |
char buffer[4]; | |
#define buffer_size sizeof(buffer)/sizeof(buffer[0]) | |
int8_t buffer_pos = 0; | |
void setup() { | |
//Initialize serial and wait for port to open: |
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
/* | |
This sketch is used with Vixen Sequence to allow Arduino's to be daisy chained. | |
see for details. | |
http://stackoverflow.com/questions/27172147/arduino-serial-communcation-with-vixen | |
*/ | |
#define FIRST_IN_CHAIN 1 // set this to 1 for the first in Chain | |
#define SIZE_OF_ARRAY(X) (sizeof(X)/sizeof(X[0])) //total length divided by length of one element | |
// As specified in Vixen's General Serial Port Setup "Send a Text Footer" |
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 "Arduino.h" | |
struct Pins { | |
uint8_t sig; | |
uint8_t gnd; | |
}; | |
class PhotoCell | |
{ | |
public: |