I hereby claim:
- I am DenverDias on github.
- I am denver (https://keybase.io/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:
I hereby claim:
To claim this, I am signing this object:
| [archlinuxfr] | |
| SigLevel = Never | |
| Server = http://repo.archlinux.fr/$arch |
| void loop() | |
| { | |
| while(!Serial.available()); | |
| //This command makes it wait until the Serial data is sent | |
| while(Serial.available()) | |
| { | |
| Input[Index]=Serial.read(); | |
| //Stores the byte of data from the serial buffer | |
| Serial.print(Input[Index]); | |
| //Prints out the same data |
| int Index=0, endofstring, i; | |
| //This creates dummy variables to index letters | |
| char Input[255]; | |
| //This is required to store the input data temporarily |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| /* 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 | |
| } |
| void playLetter(char x) | |
| { | |
| switch (x): | |
| case 'E': | |
| dit(); return; | |
| case 'T': | |
| dah(); return; | |
| case 'A': | |
| di();dah(); return; | |
| case 'O': |
| void di() | |
| { | |
| dit(); | |
| } |
| void dah() | |
| { | |
| tone(tonePin, buzz); | |
| delay(dahPeriod); | |
| noTone(tonePin); | |
| delay(relaxtime); | |
| } |
| void dit() | |
| { | |
| tone(tonePin, buzz); | |
| delay(dotPeriod); | |
| noTone(tonePin); | |
| delay(relaxtime); | |
| } |
| #define buzz (analogRead(1)+200) |