Skip to content

Commit 7c2f1b8

Browse files
Merge branch 'm4eyes_arcadify' of https://github.com/ladyada/Adafruit_Learning_System_Guides into pr/858
2 parents 61dab5c + 523646d commit 7c2f1b8

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

M4_Eyes/M4_Eyes.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,11 @@ void setup() {
172172
}
173173

174174
yield();
175-
uint8_t e, rtna = 0x01; // Screen refresh rate control (datasheet 9.2.18, FRCTRL2)
175+
uint8_t e;
176176
// Initialize displays
177-
for(e=0; e<NUM_EYES; e++) {
178-
eye[e].display = new Adafruit_ST7789(eye[e].spi, eye[e].cs, eye[e].dc, eye[e].rst);
179-
eye[e].display->init(240, 240);
180-
eye[e].display->sendCommand(0xC6, &rtna, 1);
181-
eye[e].spi->setClockSource(DISPLAY_CLKSRC);
182-
eye[e].display->fillScreen(0x1234);
183-
eye[e].display->setRotation(0);
177+
eye[0].display = arcada._display;
178+
if (NUM_EYES > 1) {
179+
eye[1].display = arcada.display2;
184180
}
185181

186182
yield();

0 commit comments

Comments
 (0)