From: Cefn Hoile Date: Mon, 26 Feb 2018 22:30:59 +0000 (+0000) Subject: Upload new-structure agnostic and the time package too X-Git-Tag: 0.1.0~4^2~6 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/1ecde5c0419da5ef0c42f9420d79dbac6766b70d Upload new-structure agnostic and the time package too --- diff --git a/test/scripts/upload_feather_huzzah_circuitpython_put.sh b/test/scripts/upload_feather_huzzah_circuitpython_put.sh index cb4e544..146dfb9 100755 --- a/test/scripts/upload_feather_huzzah_circuitpython_put.sh +++ b/test/scripts/upload_feather_huzzah_circuitpython_put.sh @@ -40,7 +40,12 @@ done # switch to adafruit_blinka source cd ../../src -# upload agnostic/mpy for platform detection used by tests +# create adafruit_blinka agnostic package for cross-platform logic ampy --port $PORT mkdir --exists-okay adafruit_blinka -$MPYCROSS adafruit_blinka/agnostic.py -ampy --port $PORT put adafruit_blinka/agnostic.mpy adafruit_blinka/agnostic.mpy \ No newline at end of file +ampy --port $PORT mkdir --exists-okay adafruit_blinka/agnostic +# upload agnostic.mpy for platform detection +$MPYCROSS adafruit_blinka/agnostic/__init__.py +ampy --port $PORT put adafruit_blinka/agnostic/__init__.mpy adafruit_blinka/agnostic/__init__.mpy +# upload time.mpy for time logic +$MPYCROSS adafruit_blinka/agnostic/time.py +ampy --port $PORT put adafruit_blinka/agnostic/time.mpy adafruit_blinka/agnostic/time.mpy