-
Notifications
You must be signed in to change notification settings - Fork 15
printer encoding CP437 #24
Comments
If you have any questions related to the Adafruit Products, I would suggest to post it in the Adafruit Forums I will keep this issue open for the moment to see if anybody familiar with this code could give you an answer. Thanks |
Thank you very much, but I opened the issue to make this proposition to change the code: for me the problem is solved, as I simply changed the function in my code. But I think that this change might be helpful: since no commands are sent through _write_char, and all other ASCII-characters are preserved in CP437, the functionality of the function will only be extended. |
Oh I see thank you, would you mind doing a PR? :) |
@mushunrek let's compare your change......I might be willing to do a pr to get your change incorporated.... |
Hey! I am not yet super used to git as I am not a regular programmer. If I understand it correctly, I would need to create a new branch, make the change and do a pull request afterwards?
Since I am a newbie, it would be great if you could tell me how exactly to proceed. I could do a branch and then a pull request if that is the correct workflow. If I am not mistaken, there is a second function [has_paper] that didn't work with my printer. But this should go into a different issue? |
Resolved by #29 |
Hello everybody,
I am new here. I was working on a project using the Adafruit Mini Thermal Printer and I got into trouble when I wanted to use characters from extended ASCII tables. After looking into the user manual, it seems that the default encoding of the printer is CP437. So I was wondering, why one should use thas ASCII-encoding instead of the CP437-encoding in the _write_char funtion at line 193. Even though this encoding is a little out of date, it still manages most of the special characters from EU, additionally to the English characters. It would be nice to have some possibility to change the encoding, but I didn't exactly understand from the user manual how this works exactly.
If this is not the right place to give such proposition, I would be glad about a direction where to go instead :)
Bests,
mushunrek
The text was updated successfully, but these errors were encountered: