IT8951Manager manager = (IT8951Manager) getSystemService("it8951");
...
public void DisplayImage(final int draw_id){
new Thread(new Runnable() {
@Override
public void run() {
byte [] data;
Bitmap bitmap=BitmapFactory.decodeResource(getBaseContext().getResources(), draw_id);
Bitmap target_bitmap = scaleBitmap(bitmap,mWidth,mHeight);
Log.e(TAG,"开始转换");
if(mWidth==2880){
data = getGrayImage42(target_bitmap);
}else {
data = getGrayImage(target_bitmap);
}
Log.e(TAG,"结束转换 data len ="+data.length);
try {
int status = manager.DisplayImageAPI(data,mWidth,mHeight);
Log.e(TAG,"display image status="+status);
}catch (Exception e){
}
isDisplaying=false;
}
}).start();
}
So, I need to re-contact the vendor and get the source for that android service that handles the DisplayImageAPI?As far as I can see most of that code is a demo using OpenCV to display an image. The driver for the display does not seem to be present in that code but is obtained as a service and used in line 21 below.
Link fixed - thanks!Your download link seems to be broken - I got it to work using a text copy and paste into a browser address field.
Yes, I will write an app (and install it on that android motherboard) that will obtain info from the internet and display it on the eink display.Yeah, probably talking past each other. Is the goal to install an app on the custom board? Or how are you trying to get to the display?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?