Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am DenverDias on github.
  • I am denver ( on keybase.
  • I have a public key whose fingerprint is 4649 9061 59BA 835B A581 4920 3707 71A9 9046 6FE9

To claim this, I am signing this object:

DenverDias / AddRepositoryToPacmanForYaourt
Created Sep 18, 2013
This snippet adds the repository to pacman that contains yaourt...
View AddRepositoryToPacmanForYaourt
SigLevel = Never
Server =$arch
View Morse loop()
void loop()
//This command makes it wait until the Serial data is sent
//Stores the byte of data from the serial buffer
//Prints out the same data
View Global scope variables
int Index=0, endofstring, i;
//This creates dummy variables to index letters
char Input[255];
//This is required to store the input data temporarily
View Defining setup()
void setup()
/* Using the serial command I program the Arduino to communicate at a baud rate of 9600 bits per second. */
pinMode(tonePin, OUTPUT);
// This command sets the pin to act as output
DenverDias / Defining playLetter function
Created Aug 16, 2013
Setting up a construct for playing morse code
View Defining playLetter function
void playLetter(char x)
switch (x):
case 'E':
dit(); return;
case 'T':
dah(); return;
case 'A':
di();dah(); return;
case 'O':
DenverDias / Defining a di
Created Aug 16, 2013
Making inner dits prettier
View Defining a di
void di()
DenverDias / Defining a dah
Created Aug 16, 2013
Setting the sequence for a dah
View Defining a dah
void dah()
tone(tonePin, buzz);
DenverDias / Defining a dit
Created Aug 16, 2013
Setting a sequence for a dit
View Defining a dit
void dit()
tone(tonePin, buzz);
View Floating buzz output frequency
#define buzz (analogRead(1)+200)