blob: 3742115decbafec49198b72d1d4975309d5fce7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include "mxcfb.h"
#include <linux/fb.h>
int main(int argc, char *argv[])
{
int mode = AUTO_UPDATE_MODE_AUTOMATIC_MODE;
int framebuffer = open("/dev/fb0", O_RDWR); /* 0_RDONLY */
if (framebuffer != -1)
{
ioctl(framebuffer, MXCFB_SET_AUTO_UPDATE_MODE, &mode);
close(framebuffer);
printf("E-ink display autoupdate enabled.\n");
}
return 0;
}
|