summaryrefslogtreecommitdiff
path: root/ports/nrf/background.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2019-01-17 18:19:07 -0800
committerScott Shawcroft <scott@tannewt.org>2019-01-17 18:19:07 -0800
commit6404aaf411d7fe5fd96f3a8cbf7a1cb7580a09e7 (patch)
treec4862f29c962e724a0df35c01ed04256df03b22a /ports/nrf/background.c
parent760bd8d8a4f0aa0ed8651e89596fb2e6effbc14f (diff)
Fix up nrf and using board.SPI in FourWire
Diffstat (limited to 'ports/nrf/background.c')
-rw-r--r--ports/nrf/background.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/ports/nrf/background.c b/ports/nrf/background.c
index f022b5bc9..69c76fd06 100644
--- a/ports/nrf/background.c
+++ b/ports/nrf/background.c
@@ -24,15 +24,20 @@
* THE SOFTWARE.
*/
-#ifdef NRF52840
+#include "py/runtime.h"
#include "supervisor/usb.h"
-#endif
-
#include "supervisor/shared/stack.h"
+#ifdef CIRCUITPY_DISPLAYIO
+#include "shared-module/displayio/__init__.h"
+#endif
+
void run_background_tasks(void) {
- #ifdef NRF52840
- usb_background();
+ usb_background();
+
+ #ifdef CIRCUITPY_DISPLAYIO
+ displayio_refresh_displays();
#endif
+
assert_heap_ok();
}