@@ -134,7 +134,7 @@ void setup() {
134
134
// in which they are initialized. HID MUST be initialized before
135
135
// Serial, which must be initialized before the display.
136
136
137
- int status = arcada.begin (); // Save status for Serial print later
137
+ int status = arcada.arcadaBegin (); // Save status for Serial print later
138
138
139
139
// HID (keyboard) initialization
140
140
usb_hid.setPollInterval (2 );
@@ -157,7 +157,7 @@ void setup() {
157
157
// Display initialization. This is all part of the persnickety sequence!
158
158
arcada.displayBegin ();
159
159
arcada.setBacklight (255 );
160
- arcada.fillScreen (ARCADA_BLACK);
160
+ arcada.display -> fillScreen (ARCADA_BLACK);
161
161
162
162
// Audio initialization
163
163
AudioMemory (10 );
@@ -192,10 +192,10 @@ void setup() {
192
192
}
193
193
194
194
// 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 ,
199
199
(uint16_t *)face, FACE_WIDTH, FACE_HEIGHT);
200
200
201
201
// Create an offscreen framebuffer that's just the bounding
@@ -426,7 +426,7 @@ void loop() {
426
426
// while a screen update is currently in progress. (This is assuming
427
427
// SPI DMA is enabled in Adafruit_SPITFT.h. If it is not, that's OK,
428
428
// this function call simply compiles to nothing in that case.)
429
- arcada.dmaWait ();
429
+ arcada.display -> dmaWait ();
430
430
431
431
if (openRows) {
432
432
// Draw the open section of the eyes, then draw the pupils on top
@@ -484,7 +484,7 @@ void loop() {
484
484
// is used...this is fastest as it can continue in the background
485
485
// (while we process input on the next frame).
486
486
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 ,
489
489
false , true ); // Non-blocking, big-endian
490
490
}
0 commit comments