circuitpython/ports/nrf/boards/pitaya_go
Scott Shawcroft 40118bcf57
Add `board_deinit` for use with sleep
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)

Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.

Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.

ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.

Fixes #3786
2020-12-08 10:52:25 -08:00
..
README.md add nRF52840 based Makerdiary Pitaya Go 2020-04-30 07:38:20 +00:00
board.c Add `board_deinit` for use with sleep 2020-12-08 10:52:25 -08:00
mpconfigboard.h add nRF52840 based Makerdiary Pitaya Go 2020-04-30 07:38:20 +00:00
mpconfigboard.mk use Nordic's VID which seems to be allowed 2020-05-01 06:10:43 +00:00
pins.c Update user button names. 2020-09-18 17:01:44 -04:00

README.md

Makerdiary Pitaya Go

Pitaya Go is a compact and versatile development platform for IoT solutions, combining the Nordic's high-end multiprotocol SoC nRF52840 and the Microchip's extreme low power Wi-Fi® network controller ATWINC1500B. It offers a complete solution for wireless connectivity with IEEE 802.11 b/g/n, Bluetooth 5, Thread and Zigbee, that is specifically designed for the IoT. Pitaya Go features a Battery Charger with power path management, 64Mbit ultra low power QSPI Flash memory, additional NFC-A Tag PCB Antenna, user programmable RGB LED and Buttons, reversible USB-C Connector and easily expandable Header Sockets. All these features above make this board an ideal choice for the next IoT project.

from Makerdiary

Installing CircuitPython submodules

Before you can build, you will need to run the following commands once, which will install the submodules that are part of the CircuitPython ecosystem, and build the mpy-cross tool:

$ cd circuitpython
$ git submodule update --init
$ make -C mpy-cross

Building

$ cd ports/nrf
$ make BOARD=pitaya_go SD=s140 -V=1 -j4

Flashing CircuitPython

The Pitaya Go has a pre-programmed bootloader which can be used to program the Pitaya Go. Follow the guide - How to Program Pitaya Go to flash the CircuitPython firmware.