This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Thermal printer string to pixel conversion

Dear Sir, 

My requirement is design and develop a 2 inch thermal printer  I have gone through all the reference design document 

and finally I had some doubt kindly clear to complete my project

I am using TM4C123GH6PMI7 controller with library tivaware_c_series_2_1_4_178 

and reference design is THERMAL PRINTER 4F PORTED_V6 

printer head is Seiko CAPD245D 

1. How to convert string to pixel conversion happening with graphic library please provide better document if available

2. the above given reference design QR code print code not given kindly provide reference code how to make QR code and BAR code or reference document 

3. how to implement thermal printer command set with best way 

  • Sorry that TI design is no longer supported and not available.

  • Dear Sir,

    kindly give some idea how to convert string to pixel format with tivaware_c_series_2_1_4_178 graphics library

  • Please note that 2.1.4.178 is not the latest version of TivaWare. If you are starting a new project, I suggest you download version 2.2.0.295. 

    First, start by reading chapter 3 of the Graphic Library User's Guide: C:\ti\TivaWare_C_Series-2.1.4.178\docs\SW-TM4C-GRL-UG-2.1.4.178.pdf

    Then read chapter 6 of: C:\ti\TivaWare_C_Series-2.1.4.178\docs\SW-TM4C-TOOLS-UG-2.1.4.178.pdf. It discusses the tool "FreeType Rasterizer"

    Both of these documents are also available in the latest version of TivaWare.

  • Dear Sir,

    I have updated TivaWare_C library all are working fine

    but I am getting some error given below 

    "../drivers/cfal96x64x16.c", line 817: warning #145-D: a value of type "void (*)(void *, long, long, unsigned long)" cannot be used to initialize an entity of type "void (*)(void *, int32_t, int32_t, uint32_t)"

    please explain how avoid this error 

    Thank you in advance 

  • Where did you find the file cfal96x64x16.c and what version of the compiler were you using?

    The file cfal96x64x16.c does not exist in TivaWare version 2.2.0.295. It does exist in the older TivaWare version 2.1.4.178. It is used in the example C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c123g\grlib_demo. This example is no longer included in TivaWare as TI no longer sells the DK-TM4C123G.

    I rebuilt the grlib_demo example from v2.1.4.178 using compiler version 20.2.4 LTS and did not see this warning. It is not an error, only a warning. In this case, a long is the same as int32_t and an unsigned long is the same as  a uint32_t so the warning can be ignored.