#include #include #include #include "mxcfb.h" #include int main(int argc, char *argv[]) { struct mxcfb_update_data update_data = { 0, 0, 800, 600, WAVEFORM_MODE_AUTO, }; update_data.update_mode = UPDATE_MODE_FULL; int framebuffer = open("/dev/fb0", O_RDWR); /* 0_RDONLY */ if (framebuffer != -1) { ioctl(framebuffer, MXCFB_SET_UPDATE_SCHEME, UPDATE_SCHEME_QUEUE); ioctl(framebuffer, MXCFB_SEND_UPDATE, &update_data); close(framebuffer); printf("E-ink display fully updated.\n"); } return 0; }