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 spwm(int freq, int pin, int spd) { | |
digitalWrite(pin, HIGH); | |
delayMicroseconds(spd * freq); | |
digitalWrite(pin, LOW); | |
delayMicroseconds(spd * (255 - freq)); | |
} | |
int delay = 15; | |
void loop() { |
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
*.bak |
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/perl -w | |
use 5.005; | |
#use strict; | |
use Getopt::Std; | |
use IO::Socket; | |
use IO::Select; | |
use Fcntl; | |
use Date::Parse; | |
use Switch; |
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 <EtherCard.h> | |
#include <TinyXML.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_ST7735.h> | |
#include <SPI.h> | |
#include <petit_fatfs.h> | |
#include <MemoryFree.h> | |
#include <stdlib.h> |
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
#!/bin/bash | |
PATH=/usr/local/bin:$PATH | |
WEMO=wemo | |
. wemo_functions.sh | |
case $# in | |
0) | |
wemo_get $WEMO |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/select.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <termios.h> | |
#include <string.h> | |
#include <unistd.h> |
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
.lib | |
*.cpp.o | |
tinysensor.ino.bin | |
tinysensor.ino.elf | |
tinysensor.eep |
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
.lib | |
*.cpp.o | |
*.ino.bin | |
*.ino.elf | |
*.eep | |
.*.swp |
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 <SoftwareSerial.h> | |
#include <RF24Network.h> | |
#include <RF24.h> | |
#include <SPI.h> | |
#include <EEPROM.h> | |
RF24 radio(2, 3); | |
RF24Network network(radio); | |
const int rx = 1, tx = 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
Counting | |
------------ | |
**Permutations** | |
$n! = n(n-1)(n-2) ... 1$ | |
**k-Permutations** | |
$\frac{n!}{(n-k)!}$ | |
**Combinations** |