]>
git.gir.st - hardpass.git/blob - oled/oled_clear.cpp
1e8ba2aefe6745811da21957076eddae2da00847
1 #include "ArduiPi_OLED_lib.h"
2 #include "Adafruit_GFX.h"
3 #include "ArduiPi_OLED.h"
9 //yes, this is irritating to unix users, but a return val >= 1 will mean nth item selected
10 ArduiPi_OLED display
; // Instantiate the display
18 // default options values
24 int main(int argc
, char **argv
)
26 if ( !display
.init(OLED_I2C_RESET
,opts
.oled
) ) {
32 display
.clearDisplay(); // clears the screen buffer
33 display
.display(); // display it (clear display)
35 display
.close(); // Free PI GPIO ports