ok. i have connection to the display and can now separately write text and commands to it, but how do i send this combined message to it: 1B 46 44 [text] 0D - seems that esphome can not accept the text part in the following: 0x1B, 0x46, 0x44, ´text´ ,0x0D
Would an ASCII to HEX table assist, both in coding, as well as understanding the issue?
The desired bit/byte pattern actually transmitted to the pos7300 is the same, whether you depict it as text, or as an Hex value in your code. One is ASCII, the other HEX. Both represent the same character. Of course if your code demands it, you can translate from one to the other at whim, as required.
Hex codes are useful, often for escape sequences that don’t have an equivalent ASCII value, ASCII values being a smaller subset of the possible HEX values available.
Wait till you get to umlauts and the like - no wonder those French and Italians wave their arms about so expressively when they converse! Grins.
Not sure if that kind of string manipulation and concatenation works.