Hi,
I was able to access the device directly using the /dev/fb. This is a simple routine for blanking the LCD.
int lcdBlank(bool val)
{
int fbfd;
int blank = 0;
int ret = 0;
if(val == true)
blank = FB_BLANK_POWERDOWN;
else
blank = FB_BLANK_UNBLANK;
fbfd = open(FBDEVFILE, O_RDWR);
if(fbfd < 0)
{
printf("Could Not Open FB for blanking\n");
return -1;
}
ret = ioctl(fbfd,FBIOBLANK, &blank);
if (ret < 0)
printf("Could not exe IOCTL for blanking lcd\n");
close(fbfd);
return ret;
}
int lcdBlank(bool val)
{
int fbfd;
int blank = 0;
int ret = 0;
if(val == true)
blank = FB_BLANK_POWERDOWN;
else
blank = FB_BLANK_UNBLANK;
fbfd = open(FBDEVFILE, O_RDWR);
if(fbfd < 0)
{
printf("Could Not Open FB for blanking\n");
return -1;
}
ret = ioctl(fbfd,FBIOBLANK, &blank);
if (ret < 0)
printf("Could not exe IOCTL for blanking lcd\n");
close(fbfd);
return ret;
}
To copy to clipboard, switch view to plain text mode
Bookmarks