projects
/
Arduino
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
MONITOR_PORT = /dev/serial/by-id/ to correctly detect serial
[Arduino]
/
Desk_LED_dimmer
/
fade.sh
1
#!/bin/sh -e
2
3
microcom -p /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9UHTFJF-if00-port0 | \
4
while IFS= read -r line; do printf '%s %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$line"; done | \
5
tee -a /tmp/fade.log
6
7
#gawk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' | \
8