You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And call that right after the GFX is initialized.
Added below right after that to get rotation and text readable.
`
lcd_reg_init();
gfx->setRotation(2); // orientation of usb connector when readable 0:bottom 2:top
gfx->invertDisplay(true); // invert colors
`
Result:
09:42:00.347 -> Benchmark micro-secs
09:42:00.481 -> Screen fill 148374
09:42:00.655 -> Text 26151
09:42:04.754 -> Pixels 1063442
09:42:05.599 -> Lines 701204
09:42:05.735 -> Horiz/Vert Lines 13789
09:42:06.031 -> Rectangles (filled) 161154
09:42:06.102 -> Rectangles (outline) 7211
09:42:06.301 -> Triangles (filled) 68247
09:42:06.429 -> Triangles (outline) 27054
09:42:06.637 -> Circles (filled) 62982
09:42:06.823 -> Circles (outline) 64979
09:42:06.994 -> Arcs (filled) 47939
09:42:07.164 -> Arcs (outline) 83927
09:42:07.489 -> Rounded rects (filled) 169315
09:42:07.570 -> Rounded rects (outline) 23634
09:42:07.700 -> Done!
From the documentation is should be a JD9853 chip? I have not tested the card reader. Sorry for the messed up layout.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a device defenition for this board. It runs the PDQ example.
added to Arduino_GFX_dev_device.h:
void lcd_reg_init(void) {
static const uint8_t init_operations[] = {
BEGIN_WRITE,
WRITE_COMMAND_8, 0x11, // 2: Out of sleep mode, no args, w/delay
END_WRITE,
DELAY, 120,
};
bus->batchOperation(init_operations, sizeof(init_operations));
}
Beta Was this translation helpful? Give feedback.
All reactions