Skip to content

Commit 07ff960

Browse files
committed
test version
1 parent d2f7d32 commit 07ff960

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

examples/tests/test_version.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from arduino_alvik import ArduinoAlvik
2+
from time import sleep_ms
3+
import sys
4+
5+
alvik = ArduinoAlvik()
6+
7+
alvik.begin()
8+
9+
while True:
10+
try:
11+
print(f'\nLIBRARY VERSION: {alvik.get_lib_version()}')
12+
print(f'FIRMWARE VERSION: {alvik.get_fw_version()}')
13+
print(f'REQUIRED FW VERSION: {alvik.get_required_fw_version()}')
14+
print(f'FIRMWARE VERSION COMPATIBILITY CHECK: {alvik.check_firmware_compatibility()}\n')
15+
sleep_ms(1000)
16+
except KeyboardInterrupt as e:
17+
print('over')
18+
alvik.stop()
19+
sys.exit()

0 commit comments

Comments
 (0)