X-Git-Url: http://git.harvie.cz/?p=mirrors%2FPrograms.git;a=blobdiff_plain;f=arduino%2Fbomba-ps2test%2Fbomba-ps2test.ino;fp=arduino%2Fbomba-ps2test%2Fbomba-ps2test.ino;h=0000000000000000000000000000000000000000;hp=57160a357f0e92c482dbeebbcda9e714bfd717f6;hb=de8021a10a2d637bb82fcfbf59ab419605f2ae0e;hpb=46a1695823fd4553a6f481c65b2594340d99dbc4 diff --git a/arduino/bomba-ps2test/bomba-ps2test.ino b/arduino/bomba-ps2test/bomba-ps2test.ino deleted file mode 100644 index 57160a3..0000000 --- a/arduino/bomba-ps2test/bomba-ps2test.ino +++ /dev/null @@ -1,26 +0,0 @@ -#include - -PS2dev keyboard(19, 18); //clock, data - -void make_break_kb(byte data) -{ -// makes and breaks the key - keyboard.write(data); - delay(50); - keyboard.write(0xF0); - delay(50); - keyboard.write(data); - delay(50); -} - -void setup() { -} - -char scancodes[] = {0x45, 0x16, 0x1E, 0x26, 0x25, 0x2E, 0x36, 0x3D, 0x3E, 0x46, 0x7C, 0x7C}; //Scancodes for numbers 0-9, *, # - -void loop() { - for(int i = 0; i < 11; i++) { - make_break_kb(scancodes[i]); - delay(1000); - } -}