Instructables
so you have all probably wanted to make an awesome button bu didnt know how...
here are the instructions to how i made my awesome button with a leostick not an attiny
you will need:
a computer
your leostick
the code




##exceptional update 2##
i made a new case for it so now it looks first-rate 
haha i used the awesome box to make the marvelous words in this superb update and once again the exceptional does its job....


##brilliant update 3##
does anyone know how to add a ctrl z button to a leostick, ive been trying but its hard

##update##sites mentioning this
http://www.freetronics.com/blogs/news/7021290-create-an-awesome-button-with-a-freetronics-leostick
http://www.dumpserver.co.uk/pages/1152898-awesome-button-with-a-leostick
http://yticadu.appspot.com/iblefeed
http://twitter.com/DIYEngineering/statuses/277583779885899777
http://freetronics.blogspot.com.au/2012/12/create-awesome-button-with-freetronics.html

i
f you mention this on another site PLEASE tell me in the comments
 
Remove these adsRemove these ads by Signing Up

Step 1: The code...

the code was modified from the original to work with a leostick
you can also add words and change them to your favorite cheats from games



const byte NUMBER_OF_WORDS = 27;
char* words[NUMBER_OF_WORDS] = {
"neat", "cool", "wicked", "incredible", "excellent", "crack", "exceptional", "fantastic",
"fabulous", "fine", "first-rate", "marvelous", "super", "terrific", "tremendous", "wonderful",
"brilliant", "superb", "keen", "laudable", "worthy", "rad", "sweet", "fresh", "dope", "fly", "nifty"
};

void setup(){
randomSeed(analogRead(0));   //give the random number generator funky data as a seed
pinMode(0, INPUT);           // set pin to input
digitalWrite(0, HIGH);       // turn on pullup resistors
delay(5000);
}

void loop(){
  if (digitalRead(0) == LOW) // is the button pressed?
  {
    Keyboard.print(words[random(0,NUMBER_OF_WORDS)]); // type a randome word from our list
    Keyboard.print(" "); // and add a space
    delay(500); // wait a half a second
  }
}
CountParadox made it!2 months ago

Thank you sir c:

your code was most helpful to me!

My one just presses space when the button is pressed, going to use it to trigger a photobooth, In the future I might figure out how to get it to listen on the serial port for a letter or word

then save it to EEPROM
so its easy to change the typed thing from any serial monitor :D

10735860_336426396530792_525898976_n.jpg10744599_336426399864125_1732068404_n.jpg10699300_336426409864124_1615735244_n.jpg10736067_336426413197457_1645956830_n.jpg10735676_336426419864123_672374847_n.jpg10581390_336426423197456_1633526498_n.jpg
The nerdling (author)  CountParadox2 months ago

awesome :)