Now with added rickrolling. A program to mess with people. Intended for small boards with built in USB sockets that connect direct to the CPU and can easily be hidden behind a computer (e.g. the mBuino).

Dependencies:   USBDevice mbed

Pretends to be a USB mouse and keyboard and has some predefined functions for various things (do a google image search on a set keyword every 5 minutes, move the mouse in a circle, keep turning the capslock key on etc...)

The default is to rickroll the user. It turns caps lock on, when the user turns it off again the program will turns the volume up to max and load a youtube video of Rick Astley. For the next 45 seconds the mouse will do some circles to make it harder to stop the video. It will then wait 10 minutes and loop back to the start.

As google used to say: Don't be evil. But there is nothing wrong with being a little bit naughty.

Committer:
AndyA
Date:
Thu Jan 14 17:00:53 2016 +0000
Revision:
2:15eab46e805b
Parent:
1:f2747e954f10
Added max volume command. Changed default to rickrolling when they turn capslock off.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndyA 1:f2747e954f10 1
AndyA 1:f2747e954f10 2 // number of search terms
AndyA 1:f2747e954f10 3 const int searchStringCount = 6;
AndyA 1:f2747e954f10 4 // search terms. Should be url encoded (e.g. space becomes %20)
AndyA 1:f2747e954f10 5 const char *searches[] = {"hot%20cheese",
AndyA 1:f2747e954f10 6 "big%20show",
AndyA 1:f2747e954f10 7 "hot%20cheese",
AndyA 1:f2747e954f10 8 "magic%20mike%20xxl",
AndyA 1:f2747e954f10 9 "hot%20wet%20cheese",
AndyA 1:f2747e954f10 10 "hot%20wet%20-cheese"
AndyA 1:f2747e954f10 11 };
AndyA 1:f2747e954f10 12 // pause between searches in seconds
AndyA 1:f2747e954f10 13 const float delayBetweenSearches = 120;
AndyA 1:f2747e954f10 14
AndyA 1:f2747e954f10 15 // start of the search string
AndyA 1:f2747e954f10 16 const char searchPrefix[] = "https://www.google.co.uk/search?q=";
AndyA 1:f2747e954f10 17
AndyA 1:f2747e954f10 18 // end of the seach string (an image search with safe search switched off)
AndyA 1:f2747e954f10 19 const char searchSuffix[] = "&safe=off&tbm=isch";
AndyA 1:f2747e954f10 20
AndyA 1:f2747e954f10 21