File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,13 +172,10 @@ void setup() {
172172 }
173173
174174 yield ();
175- uint8_t e, rtna = 0x01 ; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
176175 // Initialize displays
177176 eye[0 ].display = arcada._display ;
178- eye[0 ].display ->sendCommand (0xC6 , &rtna, 1 );
179177 if (NUM_EYES > 1 ) {
180178 eye[1 ].display = arcada.display2 ;
181- eye[1 ].display ->sendCommand (0xC6 , &rtna, 1 );
182179 }
183180
184181 yield ();
@@ -203,7 +200,10 @@ void setup() {
203200
204201 // Initialize DMAs
205202 yield ();
203+ uint8_t e, rtna = 0x01 ; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
206204 for (e=0 ; e<NUM_EYES; e++) {
205+ eye[e].spi ->setClockSource (DISPLAY_CLKSRC);
206+ eye[e].display ->sendCommand (0xC6 , &rtna, 1 );
207207 eye[e].display ->fillScreen (0 );
208208 eye[e].dma .allocate ();
209209 eye[e].dma .setTrigger (eye[e].spi ->getDMAC_ID_TX ());
You can’t perform that action at this time.
0 commit comments