Robin2:
Why?The format you are currently trying to work with seems very simple.
...R
I don't know. I'm a hardware guy and i would love to do this in hardware if i could.
I've looked into the examples on the link that i got in first response.
Last example seems to be what i'm looking after, but i'm having this issue that i will only have one start marker, then a variable amount of data, and then one stop marker.
The printhead is 128 pixel wide so i will be sending the printer a 128x"somethingbig", so putting the data into an array won't work like shown in the example. If i create an array of 2048bytes i would be able to print a square label - done.
Now i will look at the example code, and try to change it so it reads in 16 bytes, prints a line, reads the next 16 etc. until it will see the end marker, which will stop the printing and actuate the label cutter.
Is there any elegant way of turning e.g. 0xAA received in ascii and stuff it into my array? I'm wondering that.
// Per.