This file contains hidden or 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 <TimerOne.h> | |
const byte PWMDAC1pin = 9; // PWM DAC, only pins 9 and 10 are allowed | |
const byte PWMDAC2pin = 10; // example using second DAC | |
const byte period = 32; // for 8 bit DAC | |
byte commandByte; | |
byte noteByte; |
This file contains hidden or 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 <Bridge.h> | |
#include <Temboo.h> | |
#include "TembooAccount.h" // contains Temboo account information | |
/*** SUBSTITUTE YOUR VALUES BELOW: ***/ | |
// Note that for additional security and reusability, you could | |
// use #define statements to specify these values in a .h file. | |
const String TWITTER_ACCESS_TOKEN = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; | |
const String TWITTER_ACCESS_TOKEN_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; |
This file contains hidden or 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
/*¸¸.•*¨*•ELECTRONIC WHOOPIE CUSHION•*¨*•.¸¸*/ | |
/*Designed & Developed by TWSU for Fathers Day 2015*/ | |
//Samples recorded at 8 bit depth 8kHz sample rate | |
//prog_uchar siren[] PROGMEM = {120, 114, 114, 113, 112, 112, 137, 146, 144, 147, 146, 149, 148, 150, 150, 115, 98, 104, 98, 101, 97, 99, 97, 94, 141, 166, 157, 165, 161, 165, 164, 165, 169, 112, 79, 89, 81, 85, 81, 82, 82, 77, 143, 184, 172, 181, 176, 181, 180, 180, 186, 110, 60, 75, 65, 71, 66, 67, 67, 59, 147, 203, 186, 198, 190, 197, 196, 196, 203, 103, 43, 61, 48, 56, 49, 51, 51, 44, 156, 220, 200, 214, 205, 213, 209, 212, 215, 89, 25, 47, 30, 42, 32, 38, 33, 34, 175, 237, 213, 232, 218, 231, 221, 232, 222, 66, 10, 34, 14, 29, 14, 26, 12, 34, 205, 249, 229, 247, 232, 249, 233, 253, 215, 32, 0, 16, 0, 15, 0, 16, 0, 49, 242, 255, 247, 255, 247, 255, 244, 255, 188, 0, 0, 0, 0, 3, 0, 9, 0, 92, 255, 252, 255, 255, 253, 255, 246, 255, 132, 0, 7, 0, 0, 0, 0, 4, 0, 155, 255, 244, 255, 250, 255, 254, 255, 255, 66, 0, 10, 0, 6 |
This file contains hidden or 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
/*¸¸.•*¨*•ELECTRONIC WHOOPIE CUSHION•*¨*•.¸¸*/ | |
/*Designed & Developed by TWSU for Fathers Day 2015*/ | |
//Samples recorded at 8 bit depth 8kHz sample rate | |
//prog_uchar siren[] PROGMEM = {120, 114, 114, 113, 112, 112, 137, 146, 144, 147, 146, 149, 148, 150, 150, 115, 98, 104, 98, 101, 97, 99, 97, 94, 141, 166, 157, 165, 161, 165, 164, 165, 169, 112, 79, 89, 81, 85, 81, 82, 82, 77, 143, 184, 172, 181, 176, 181, 180, 180, 186, 110, 60, 75, 65, 71, 66, 67, 67, 59, 147, 203, 186, 198, 190, 197, 196, 196, 203, 103, 43, 61, 48, 56, 49, 51, 51, 44, 156, 220, 200, 214, 205, 213, 209, 212, 215, 89, 25, 47, 30, 42, 32, 38, 33, 34, 175, 237, 213, 232, 218, 231, 221, 232, 222, 66, 10, 34, 14, 29, 14, 26, 12, 34, 205, 249, 229, 247, 232, 249, 233, 253, 215, 32, 0, 16, 0, 15, 0, 16, 0, 49, 242, 255, 247, 255, 247, 255, 244, 255, 188, 0, 0, 0, 0, 3, 0, 9, 0, 92, 255, 252, 255, 255, 253, 255, 246, 255, 132, 0, 7, 0, 0, 0, 0, 4, 0, 155, 255, 244, 255, 250, 255, 254, 255, 255, 66, 0, 10, 0, 6 |
This file contains hidden or 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
/*TWSU Thirsty Plant Water Bomb code | |
Learn how to make your Thirsty Plant Water Bomb over at http://techwillsaveus.com/resources/diy-thirsty-plant-water-bomb/ | |
created May 2015 | |
*/ | |
#include <Servo.h> | |
Servo servo; |