Nguyên văn bởi nhatnguyenht
Xem bài viết
Code:
while(1) { for(i=0; i<3; i++) // gửi phím 1234 - 3 lần { hid_keyboard_send(0x00,one,0x00,0x00,0x00,0x00, 0x00); // 1 hid_keyboard_send_BLANK(); hid_keyboard_send(0x00,two,0x00,0x00,0x00,0x00, 0x00); // 2 hid_keyboard_send_BLANK(); hid_keyboard_send(0x00,three,0x00,0x00,0x00,0x00, 0x00); // 3 hid_keyboard_send_BLANK(); hid_keyboard_send(0x00,four,0x00,0x00,0x00,0x00, 0x00); // 4 hid_keyboard_send_BLANK(); } for (i=0; i< 115; i++) // Trễ 1 phút 55 giây . { Delay_ms(1000); // 1 giây } hid_keyboard_send(0x00,0x28,0x00,0x00,0x00,0x00, 0x00); // Enter hid_keyboard_send_BLANK(); count_skill++; if(count_skill >= 40) // match value { count_skill=0; // reset count hid_keyboard_send(0x00,p,0x00,0x00,0x00,0x00, 0x00); hid_keyboard_send_BLANK(); } }
Comment