Spam APM in StarCraft. Make 10 different control groups and click a button to start spamming APMs

Dependencies:   USBDevice mbed

main.cpp

Committer:
Palantir
Date:
2014-02-28
Revision:
0:fbff2b470041

File content as of revision 0:fbff2b470041:

#include "mbed.h"
#include "USBKeyboard.h"

USBKeyboard kb;
DigitalIn myInput(p5);

int main(){
    int i=0;
    myInput.mode(PullDown);
    while (1){
        if(myInput.read()==1){
            for(i=0; i<9; i++)
                kb.printf("%d", i);
        }
    }
}