@@ -134,7 +134,7 @@ void setup() {
134134 // in which they are initialized. HID MUST be initialized before
135135 // Serial, which must be initialized before the display.
136136
137- int status = arcada.begin (); // Save status for Serial print later
137+ int status = arcada.arcadaBegin (); // Save status for Serial print later
138138
139139 // HID (keyboard) initialization
140140 usb_hid.setPollInterval (2 );
@@ -157,7 +157,7 @@ void setup() {
157157 // Display initialization. This is all part of the persnickety sequence!
158158 arcada.displayBegin ();
159159 arcada.setBacklight (255 );
160- arcada.fillScreen (ARCADA_BLACK);
160+ arcada.display -> fillScreen (ARCADA_BLACK);
161161
162162 // Audio initialization
163163 AudioMemory (10 );
@@ -192,10 +192,10 @@ void setup() {
192192 }
193193
194194 // At start, draw the entire blank/neutral face centered on screen
195- arcada.fillScreen (ARCADA_BLACK); // Erase any warnBoxes first
196- arcada.drawRGBBitmap (
197- (arcada.width () - FACE_WIDTH ) / 2 ,
198- (arcada.height () - FACE_HEIGHT) / 2 ,
195+ arcada.display -> fillScreen (ARCADA_BLACK); // Erase any warnBoxes first
196+ arcada.display -> drawRGBBitmap (
197+ (arcada.display -> width () - FACE_WIDTH ) / 2 ,
198+ (arcada.display -> height () - FACE_HEIGHT) / 2 ,
199199 (uint16_t *)face, FACE_WIDTH, FACE_HEIGHT);
200200
201201 // Create an offscreen framebuffer that's just the bounding
@@ -426,7 +426,7 @@ void loop() {
426426 // while a screen update is currently in progress. (This is assuming
427427 // SPI DMA is enabled in Adafruit_SPITFT.h. If it is not, that's OK,
428428 // this function call simply compiles to nothing in that case.)
429- arcada.dmaWait ();
429+ arcada.display -> dmaWait ();
430430
431431 if (openRows) {
432432 // Draw the open section of the eyes, then draw the pupils on top
@@ -484,7 +484,7 @@ void loop() {
484484 // is used...this is fastest as it can continue in the background
485485 // (while we process input on the next frame).
486486 arcada.blitFrameBuffer (
487- (arcada.width () - FACE_WIDTH ) / 2 + 13 ,
488- (arcada.height () - FACE_HEIGHT) / 2 + 25 ,
487+ (arcada.display -> width () - FACE_WIDTH ) / 2 + 13 ,
488+ (arcada.display -> height () - FACE_HEIGHT) / 2 + 25 ,
489489 false , true ); // Non-blocking, big-endian
490490}
0 commit comments