From d200a621647aa9fc05aae29ad7bc38363025438b Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 10 Mar 2017 19:17:54 +0100 Subject: Add PulseOut which can pulse a PWMOut for IR remote transmission. --- atmel-samd/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'atmel-samd/main.c') diff --git a/atmel-samd/main.c b/atmel-samd/main.c index ad124b58a..47edc2537 100644 --- a/atmel-samd/main.c +++ b/atmel-samd/main.c @@ -25,6 +25,7 @@ #include #include "common-hal/nativeio/AnalogIn.h" +#include "common-hal/nativeio/PulseOut.h" #include "common-hal/nativeio/PWMOut.h" #include "common-hal/usb_hid/__init__.h" @@ -170,6 +171,8 @@ void reset_samd21(void) { analogin_reset(); + pulseout_reset(); + // Wait for the DAC to sync. while (DAC->STATUS.reg & DAC_STATUS_SYNCBUSY) {} DAC->CTRLA.reg |= DAC_CTRLA_SWRST; -- cgit v1.2.3