metawatch-python/main.py

9 lines
138 B
Python

import serial
from metawatch.watch import Watch
w = Watch(serial.Serial('/dev/rfcomm0'))
print(w.get_device_type())
print(w.get_rtc())