wasp: Reorganise the board support

This commit is contained in:
Daniel Thompson 2020-01-30 22:11:31 +00:00
parent a34d65d7fd
commit 0acbcc415b
7 changed files with 8 additions and 8 deletions

View file

@ -32,7 +32,7 @@ micropython:
$(RM) micropython/ports/nrf/build-$(BOARD)-s132/frozen_content.c
$(MAKE) -C micropython/ports/nrf \
BOARD=$(BOARD) SD=s132 \
FROZEN_MANIFEST=$(PWD)/manifest/$(BOARD).py
FROZEN_MANIFEST=$(PWD)/wasp/boards/$(BOARD)/manifest.py
python3 -m nordicsemi dfu genpkg \
--dev-type 0x0052 \
--application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \

View file

@ -1,4 +1,4 @@
freeze('$(MPY_DIR)/../wasp',
freeze('../..',
(
'boot.py',
'demo.py',
@ -6,7 +6,7 @@ freeze('$(MPY_DIR)/../wasp',
'drivers/signal.py',
'drivers/st7789.py',
'logo.py',
'pinetime.py'
),
opt=3
)
freeze('.', 'watch.py', opt=3)

View file

@ -1,6 +1,6 @@
import logo
import pinetime
import watch
pinetime.display.rleblit(logo.pine64, fg=0xffff)
watch.display.rleblit(logo.pine64, fg=0xffff)

View file

@ -7,7 +7,7 @@
# len(colors) is not a multiple of 5 ;-) ).
#
import pinetime, logo, time, gc
import watch, logo, time, gc
colors = (
0xffff,
@ -38,8 +38,8 @@ def run():
l = logo.micropython
else:
l = logo.pine64
pinetime.display.fill(0)
watch.display.fill(0)
pinetime.display.rleblit(l, fg=c)
watch.display.rleblit(l, fg=c)
time.sleep(2)
gc.collect()