Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"AS-289R2.ino" is not working depending on data. #3

Open
volty98 opened this issue May 2, 2021 · 0 comments
Open

"AS-289R2.ino" is not working depending on data. #3

volty98 opened this issue May 2, 2021 · 0 comments

Comments

@volty98
Copy link

volty98 commented May 2, 2021

/* Image : The city of Kobe Japan */
int lines = sample_image_len / 48;
tp.printBitmapImage(0x63, lines);
byte myImage;
for (uint16_t i = 0; i < (48 * lines); i++) {
myImage = pgm_read_byte_near(&sample_image[i]);
tp.write(myImage);
}

sample code is printed using tp.write(myImage); . But this library method is coded that reject about 0x0a(\n).
so, When image data have 0x0a, image printing is not correct.

0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x06, 0x0C, 0x1F, 0xC0, 0x00, 0x00, 0x0F, 0xFF, 0xC0, 0x00, 0x00, 0x7B, 0xC7, 0xDF, 0x3C, 0xF3, 0xC0, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x06, 0x0C, 0x1F, 0xC0, 0x00, 0x00, 0x07, 0xFF, 0x80, 0x00, 0x00, 0x7F, 0x8F, 0x8F, 0xBC, 0xF3, 0xC0, 0x03, 0xFB, 0xFF, 0xF8, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x06, 0x0C, 0x1F, 0xC0, 0x00, 0x00, 0x07, 0xFF, 0x80, 0x00, 0x00, 0x7F, 0x8F, 0x07, 0xBC, 0xF3, 0xC0, 0x07, 0xFB, 0xFF, 0xF9, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x07, 0xFF, 0x80, 0x00, 0x00, 0x7F, 0x0F, 0x07, 0xBF, 0xE3, 0xFE, 0x0F, 0x9B, 0xDE, 0x79, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x07, 0xFF, 0x80, 0x00, 0x00, 0x7F, 0x0F, 0x07, 0xBF, 0xF3, 0xFE, 0x0F, 0x03, 0xDE, 0x3F, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

issue test.
0x00 to 0x0a in L20,L21,L22,L23,L24. (image.h)

image

image

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant