Enable 50 MHz SPI on screens
@@ -172,13 +172,10 @@ void setup() {
}
yield();
- uint8_t e, rtna = 0x01; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
// Initialize displays
eye[0].display = arcada._display;
- eye[0].display->sendCommand(0xC6, &rtna, 1);
if (NUM_EYES > 1) {
eye[1].display = arcada.display2;
- eye[1].display->sendCommand(0xC6, &rtna, 1);
}
yield();
@@ -203,7 +200,10 @@ void setup() {
// Initialize DMAs
yield();
+ uint8_t e, rtna = 0x01; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
for(e=0; e<NUM_EYES; e++) {
+ eye[e].spi->setClockSource(DISPLAY_CLKSRC);
+ eye[e].display->sendCommand(0xC6, &rtna, 1);
eye[e].display->fillScreen(0);
eye[e].dma.allocate();
eye[e].dma.setTrigger(eye[e].spi->getDMAC_ID_TX());
