README: Update describing how the clock app works
This commit is contained in:
parent
b48df32eb1
commit
4330aafaf0
1 changed files with 24 additions and 7 deletions
31
README.md
31
README.md
|
@ -45,16 +45,33 @@ trying to program it.*
|
||||||
* Connect to PineDFU using nRFConnect, click the DFU button and send
|
* Connect to PineDFU using nRFConnect, click the DFU button and send
|
||||||
`micropython.zip` to the device.
|
`micropython.zip` to the device.
|
||||||
|
|
||||||
At the end of this process your watch you will see a couple of splash
|
At the end of this process your watch will show the time (12:00) and a
|
||||||
screens (bootloader shows a small Pine64 logo, MicroPython shows are
|
battery meter. When the watch goes into power saving mode you can use
|
||||||
larger one). Once the second splash screen appears you will be able to
|
the side button to wake it again.
|
||||||
use the Nordic UART Service to access the MicroPython REPL.
|
|
||||||
|
|
||||||
Drivers are still in development, see the [TODO list](todo.md) for
|
At this point you will also be able to use the Nordic UART Service to
|
||||||
current status. In the mean time try the following and then take
|
access the MicroPython REPL, although currently you must send ^C to
|
||||||
a look at the `wasp/` directory to see how it works:
|
interrupt the program that updates the watch display.
|
||||||
|
|
||||||
|
Just for fun try:
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
|
^C
|
||||||
import demo
|
import demo
|
||||||
demo.run()
|
demo.run()
|
||||||
|
# After watching the demo for a bit...
|
||||||
|
^C
|
||||||
|
wasp.app.draw(watch)
|
||||||
|
wasp.run()
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
To set the time and restart the main application:
|
||||||
|
|
||||||
|
~~~
|
||||||
|
^C
|
||||||
|
watch.rtc.set_time((hh, mm, ss))
|
||||||
|
wasp.run()
|
||||||
|
~~~
|
||||||
|
|
||||||
|
At this stage there are many drivers and features still to be
|
||||||
|
developed, see the [TODO list](todo.md) for current status.
|
||||||
|
|
Loading…
Add table
Reference in a new issue