@@ -173,10 +173,12 @@ void setup() {
173
173
174
174
yield ();
175
175
// Initialize displays
176
- eye[ 0 ]. display = arcada. _display ;
177
- if (NUM_EYES > 1 ) {
176
+ # if (NUM_EYES > 1)
177
+ eye[ 0 ]. display = arcada. _display ;
178
178
eye[1 ].display = arcada.display2 ;
179
- }
179
+ #else
180
+ eye[0 ].display = arcada.display ;
181
+ #endif
180
182
181
183
yield ();
182
184
if (arcada.drawBMP (" /splash.bmp" , 0 , 0 , (eye[0 ].display )) == IMAGE_SUCCESS) {
@@ -200,10 +202,9 @@ void setup() {
200
202
201
203
// Initialize DMAs
202
204
yield ();
203
- uint8_t e, rtna = 0x01 ; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
205
+ uint8_t e;
204
206
for (e=0 ; e<NUM_EYES; e++) {
205
207
eye[e].spi ->setClockSource (DISPLAY_CLKSRC);
206
- eye[e].display ->sendCommand (0xC6 , &rtna, 1 );
207
208
eye[e].display ->fillScreen (0 );
208
209
eye[e].dma .allocate ();
209
210
eye[e].dma .setTrigger (eye[e].spi ->getDMAC_ID_TX ());
@@ -888,6 +889,7 @@ void loop() {
888
889
irisValue = irisMin + (sum * irisRange); // 0.0-1.0 -> iris min/max
889
890
if ((++iris_frame) >= (1 << IRIS_LEVELS)) iris_frame = 0 ;
890
891
}
892
+ #if defined(ADAFRUIT_MONSTER_M4SK_EXPRESS)
891
893
if (voiceOn) {
892
894
// Read buttons, change pitch
893
895
arcada.readButtons ();
@@ -906,6 +908,7 @@ void loop() {
906
908
Serial.println (currentPitch);
907
909
}
908
910
}
911
+ #endif
909
912
user_loop ();
910
913
}
911
914
} // end first-column check
0 commit comments