Commit bfcfd39d authored by baldo's avatar baldo
Browse files

Initial commit.

parents
About
=====
Some usefull tools for interacting with card10 via a serial connection.
At the moment the scripts expect card10 to be available via `/dev/ttyACM0`.
Dependencies
============
* bash
* picocom
#!/usr/bin/env bash
while :; do
picocom -q -b 115200 /dev/ttyACM0 2> /dev/null
done
#!/usr/bin/env bash
set -e
(
echo -n $'\cc'
echo -n $'\ca'
echo -e '\r'
echo -n $'\ce'
cat "$1" | tr '\n' '\r'
echo -n $'\cd'
sleep 3
) | picocom -q -b 115200 /dev/ttyACM0
#!/usr/bin/env bash
set -e
(
echo -n $'\cc'
echo -n $'\ca'
echo -e '\r'
echo -n $'\ce'
echo -ne 'import utime\r'
echo -ne "utime.set_unix_time("$(date +%s)")\r"
echo -ne 'import os\r'
echo -ne 'os.exit()\r'
echo -n $'\cd'
sleep 3
) | picocom -q -b 115200 /dev/ttyACM0
#!/usr/bin/env bash
set -e
picocom -q -b 115200 /dev/ttyACM0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment