Revert "test program"

This reverts commit 14dae55b4b.
This commit is contained in:
lordwelch 2017-10-27 14:18:45 -06:00
parent 14dae55b4b
commit 5dc7a214d1

View File

@ -36,18 +36,14 @@ func main() {
//test[0] |= LCTRL //test[0] |= LCTRL
fmt.Printf("%08b\n", test[0]) fmt.Printf("%08b\n", test[0])
file, err := os.OpenFile("/dev/hidg0", os.O_WRONLY, os.ModePerm) file, err := os.OpenFile("/dev/hidg0", os.O_WRONLY, os.ModePerm)
file2, err2 := os.OpenFile("test", os.O_WRONLY, os.ModePerm)
fmt.Println(err) fmt.Println(err)
fmt.Println(err2)
for i := 1; i <= 100; i++ { for i := 1; i <= 100; i++ {
write = append(write, test[:]...) write = append(write, test[:]...)
write = append(write, unpress[:]...) write = append(write, unpress[:]...)
} }
binary.Write(file, binary.BigEndian, write) binary.Write(file, binary.BigEndian, write)
binary.Write(file2, binary.BigEndian, write)
file.Close() file.Close()
file2.Close()
} }