metawatch-python/main.py

10 lines
188 B
Python

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