From d6c425f72106ffc5ed72baf91215586fdf217e80 Mon Sep 17 00:00:00 2001 From: Phillip Burgess Date: Mon, 8 Jan 2018 17:48:11 -0800 Subject: [PATCH] Change source_generator to 3 (as in earlier code); faster, much less noise --- Adafruit_FreeTouch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adafruit_FreeTouch.cpp b/Adafruit_FreeTouch.cpp index 45cac38..4624b7e 100644 --- a/Adafruit_FreeTouch.cpp +++ b/Adafruit_FreeTouch.cpp @@ -52,7 +52,7 @@ bool Adafruit_FreeTouch::begin(void) { */ uint8_t channel = PTC_GCLK_ID; - uint8_t source_generator = 1; + uint8_t source_generator = 3; // original line: system_gclk_chan_set_config(PTC_GCLK_ID, &gclk_chan_conf); uint32_t new_clkctrl_config = (channel << GCLK_CLKCTRL_ID_Pos); // from gclk.c