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
String str1,str2; | |
bool onUSB = false; | |
bool onBattery = false; | |
bool lowBattery = false; | |
unsigned long pwrCheckTimeStart;//to check power every 10sec | |
void setup() { | |
// INITIAL POWER CHECK | |
int powerSource = System.powerSource(); |
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
$fn=50; | |
x_dim = (5.625 * 25.4) / 2; | |
y_dim = 2.365 * 25.4; | |
height = 1.625 * 25.4; | |
radius = 0.375 * 25.4; | |
corrugated_width = 4.5; | |
corrugated_depth = 1.5; |
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
//****************************************************************************** | |
// MSP430FR2000 - Train Horn Hold To Play | |
// | |
// Description: Toggle pins at multiple frequencies using only TimerB, | |
// mimic train horn for silly reasons. | |
// P1.5 toggles using CRR0 and software. P2.0 and P2.1 toggle using CCR1 and CCR2 | |
// Button on P1.1 enables frequency generation while held low | |
// 1.2 VREF+ output on pin 1.7 to connect to external comparator for LiPo voltage monitor, | |
// could not get MSP430 internal comparator to work | |
// |