test program

This commit is contained in:
lordwelch 2017-10-27 14:47:56 -06:00
parent 2635812e0c
commit 8f3b27ef0a

View File

@ -39,12 +39,18 @@ func main() {
file, err := os.OpenFile("/dev/hidg0", os.O_WRONLY, os.ModePerm) file, err := os.OpenFile("/dev/hidg0", os.O_WRONLY, os.ModePerm)
fmt.Println(err) fmt.Println(err)
for j := 1; i <= 1000; i++ {
for i := 1; i <= 1000; i++ { for i := 1; i <= 1000; i++ {
write = append(write, test[:]...) write = append(write, test[:]...)
write = append(write, unpress[:]...) write = append(write, unpress[:]...)
write = append(write, test1[:]...) write = append(write, test1[:]...)
write = append(write, unpress[:]...) write = append(write, unpress[:]...)
} }
write = append(write, LCTRL, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00)
write = append(write, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
write = append(write, 0x00, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00)
write = append(write, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
}
binary.Write(file, binary.BigEndian, write) binary.Write(file, binary.BigEndian, write)
file.Close() file.Close()