1. Trammell Hudson
  2. alphaclock

Commits

Trammell Hudson  committed 88e0bd5

Scripts to sync the time and display a fixed string

  • Participants
  • Parent commits 405dd35
  • Branches default

Comments (0)

Files changed (2)

File set-display

View file
+#!/bin/sh
+# Arduino serial monitor should be in 19200 mode
+DEV="/dev/tty.usbserial-FTE531WL"
+exec perl > $DEV -e 'print chr(0xff), "A0", $ARGV[0], $ARGV[1] || "_____"' "$@"

File set-time

View file
+#!/bin/sh
+# Expects unix epoch time in decimal
+# Arduino serial monitor should be in 19200 mode
+DEV="/dev/tty.usbserial-FTE531WL"
+exec > $DEV perl -e 'printf "%sST%010d", chr(0xff), scalar(time()) - 60*60*5'