From 4a4f29b8f95aa67f63397ae4efe78c6994398ccf Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 12 Apr 2017 15:24:50 -0700 Subject: atmel-samd: Rework status LED implementation * Track status pin use by user code separately so it can take over the pins and then give them back. * Switch to hardware SPI for APA102 on Gemma and Trinket. * Merge microcontroller/types.h into microcontroller/Pin.h to better match approach going forwards. --- shared-bindings/microcontroller/Pin.h | 2 +- shared-bindings/microcontroller/__init__.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'shared-bindings/microcontroller') diff --git a/shared-bindings/microcontroller/Pin.h b/shared-bindings/microcontroller/Pin.h index 46a531a6d..75193bb78 100644 --- a/shared-bindings/microcontroller/Pin.h +++ b/shared-bindings/microcontroller/Pin.h @@ -27,7 +27,7 @@ #ifndef __MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H__ #define __MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H__ -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "py/obj.h" // Type object used in Python. Should be shared between ports. diff --git a/shared-bindings/microcontroller/__init__.c b/shared-bindings/microcontroller/__init__.c index 214436687..fbe359ed9 100644 --- a/shared-bindings/microcontroller/__init__.c +++ b/shared-bindings/microcontroller/__init__.c @@ -34,7 +34,7 @@ #include "shared-bindings/microcontroller/__init__.h" #include "shared-bindings/microcontroller/Pin.h" -#include "common-hal/microcontroller/types.h" +#include "common-hal/microcontroller/Pin.h" #include "py/runtime.h" -- cgit v1.2.3