Update build scripts. Add functor/singleton doc.

pull/12/head
Peter Hinch 2019-10-18 10:37:54 +01:00
rodzic 59ad6d674a
commit 8caf7a9c2f
3 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -124,6 +124,11 @@ The set and the array are different ways of viewing a bitmap implemented as a
bytearray: e.g. if max_value is 255 the bytearray occupies 32 bytes allocated by
the constructor.
# Functors and singletons
Two simple class decorators for objects useful in hardware interfacing.
Documented [here](./functor_singleton/README.md).
# A design for a hardware power meter
This uses a Pyboard to measure the power consumption of mains powered devices.

Wyświetl plik

@ -15,7 +15,7 @@ fi
if make -j 8
then
sleep 1
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=detect -fm dio 0 build/firmware-combined.bin
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=detect -fm dio 0 build-GENERIC/firmware-combined.bin
cd -
sleep 4
rshell -p /dev/ttyUSB0 --editor nano --buffer-size=30

Wyświetl plik

@ -25,7 +25,7 @@ then
then
make BOARD=$BOARD clean
fi
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR && pyb_boot $MPDEVICE
if make -j 8 BOARD=$BOARD FROZEN_MPY_DIR=$FROZEN_DIR FROZEN_MANIFEST= && pyb_boot $MPDEVICE
then
sleep 1
make PYTHON=python3 BOARD=$BOARD deploy