wasp: Reorganise the board support
This commit is contained in:
parent
a34d65d7fd
commit
0acbcc415b
7 changed files with 8 additions and 8 deletions
2
Makefile
2
Makefile
|
@ -32,7 +32,7 @@ micropython:
|
||||||
$(RM) micropython/ports/nrf/build-$(BOARD)-s132/frozen_content.c
|
$(RM) micropython/ports/nrf/build-$(BOARD)-s132/frozen_content.c
|
||||||
$(MAKE) -C micropython/ports/nrf \
|
$(MAKE) -C micropython/ports/nrf \
|
||||||
BOARD=$(BOARD) SD=s132 \
|
BOARD=$(BOARD) SD=s132 \
|
||||||
FROZEN_MANIFEST=$(PWD)/manifest/$(BOARD).py
|
FROZEN_MANIFEST=$(PWD)/wasp/boards/$(BOARD)/manifest.py
|
||||||
python3 -m nordicsemi dfu genpkg \
|
python3 -m nordicsemi dfu genpkg \
|
||||||
--dev-type 0x0052 \
|
--dev-type 0x0052 \
|
||||||
--application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \
|
--application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
freeze('$(MPY_DIR)/../wasp',
|
freeze('../..',
|
||||||
(
|
(
|
||||||
'boot.py',
|
'boot.py',
|
||||||
'demo.py',
|
'demo.py',
|
||||||
|
@ -6,7 +6,7 @@ freeze('$(MPY_DIR)/../wasp',
|
||||||
'drivers/signal.py',
|
'drivers/signal.py',
|
||||||
'drivers/st7789.py',
|
'drivers/st7789.py',
|
||||||
'logo.py',
|
'logo.py',
|
||||||
'pinetime.py'
|
|
||||||
),
|
),
|
||||||
opt=3
|
opt=3
|
||||||
)
|
)
|
||||||
|
freeze('.', 'watch.py', opt=3)
|
|
@ -1,6 +1,6 @@
|
||||||
import logo
|
import logo
|
||||||
import pinetime
|
import watch
|
||||||
|
|
||||||
pinetime.display.rleblit(logo.pine64, fg=0xffff)
|
watch.display.rleblit(logo.pine64, fg=0xffff)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# len(colors) is not a multiple of 5 ;-) ).
|
# len(colors) is not a multiple of 5 ;-) ).
|
||||||
#
|
#
|
||||||
|
|
||||||
import pinetime, logo, time, gc
|
import watch, logo, time, gc
|
||||||
|
|
||||||
colors = (
|
colors = (
|
||||||
0xffff,
|
0xffff,
|
||||||
|
@ -38,8 +38,8 @@ def run():
|
||||||
l = logo.micropython
|
l = logo.micropython
|
||||||
else:
|
else:
|
||||||
l = logo.pine64
|
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)
|
time.sleep(2)
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
Loading…
Reference in a new issue