Skip to content

Commit 22501c8

Browse files
committed
Optimize: LCD SPI clock source to CPU which could speed up the screen drawing
1 parent 4390230 commit 22501c8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/arduino/SERCOM.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ SERCOM::SERCOM(Sercom* s)
4747
#elif SERCOM_SPI_FREQ_REF == 100000000 // 100 MHz clock = GCLK2
4848
clockSource = SERCOM_CLOCK_SOURCE_100M;
4949
#endif
50+
#ifdef SEEED_GROVE_UI_WIRELESS
51+
if (sercom == SERCOM7 /* LCD interface */) {
52+
clockSource = SERCOM_CLOCK_SOURCE_FCPU;
53+
}
54+
#endif
5055
#endif // end __SAMD51__
5156
}
5257

0 commit comments

Comments
 (0)