Description:
Some displays support a 180-degree rotation of the internal frame buffer. This hardware feature
can be controlled with this procedure. Important: Redraw the complete display after changing the
flip mode. Best is to clear the display first, then change the flip mode and finally redraw the
content. Results will be undefined for any existing content on the screen.
Syntax:
u8x8.setFlipMode(
mode)
Parameters:
mode:
0
or
1
Flips the display 180 degrees.
u8x8.setCursor();
Description:
Define the cursor for the print function. Any output of the print function will start at this position.
Syntax:
u8x8.setCursor(
x, y)
Parameters:
x, y: Column/row position for the cursor of the print function.
Sets the draw cursor position.
u8x8.setFont()
Description:
Define a u8x8 font for the glyph and string drawing functions.
Syntax:
u8x8.setFont(
*font_8x8)
Set the font for display.
u8x8.print();
Draw the content on the OLED.
Demo Effect and Serial Print Result:
45
Grove Beginner Kit For Arduino
®
Содержание Grove Beginner Kit
Страница 1: ...Grove Beginner Kit For Arduino User Manual ...
Страница 63: ...62 Grove Beginner Kit For Arduino ...