Welcome to DFRobot: www.DFRobot.com.cn 33 / 49
}
}
void setup(){
Wire.begin();
SSD1306();
fill(0xff);//light up the screen
delay(100);
fill(0x00);//clean up the screen
delay(100);
}
void loop(){
show();
}
Please click verify/compile to review and please upload it after the confirmation.
Once you click Upload, IDE will send codes to FireBeetle Board-ESP32.
Once the upload finishes, the Gravity I2C OLED-2864 Display Screen will show ‘DFRobot
www.dfrobot.com.cn’, shown as below.
Code analysis
The reason why more code in this project is that the direct drive to the register of the Gravity I2C
OLED-2864 Display Screen with I2C communication. Please click the link or visit DFRobot Wiki on
line for advanced uses of the Gravity I2C OLED-2864 Display Screen.
void Writec(unsigned char COM)