diff options
author | cbdev <cb@cbcdn.com> | 2023-08-24 03:35:53 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2023-08-24 03:35:53 +0200 |
commit | dac4c23269dd62547bb14ea3274a21ac759915d5 (patch) | |
tree | 4ce738d1bdced39e7e071eff8c1f233f19255658 /twn3_test.c | |
parent | a7c6ecb320ff1ba6ee85767bffde41cfab1a0cd0 (diff) | |
download | libtwn-dac4c23269dd62547bb14ea3274a21ac759915d5.tar.gz libtwn-dac4c23269dd62547bb14ea3274a21ac759915d5.tar.bz2 libtwn-dac4c23269dd62547bb14ea3274a21ac759915d5.zip |
Implement read/write
Diffstat (limited to 'twn3_test.c')
-rw-r--r-- | twn3_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/twn3_test.c b/twn3_test.c index cb4fb3a..ca10574 100644 --- a/twn3_test.c +++ b/twn3_test.c @@ -10,7 +10,6 @@ int main(int argc, char** argv){ char data[1024]; - ssize_t bytes; unsigned u; int device = twn3_open("/dev/ttyACM0"); @@ -37,7 +36,10 @@ int main(int argc, char** argv){ twn3_sync_write_eeprom(device, 0, 19, 0xAA); //set ExtendID bit - twn3_sync_write_eeprom(device, 0, 5, 0x05); + //twn3_sync_write_eeprom(device, 0, 5, 0x05); + + //restart device + //twn3_sync_restart(device, 0); //store a key uint8_t key[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; |