🍪 Allow functional cookies?
We use Zendesk messaging software for easy communication with our clients. Zendesk uses cookies to interact with website visitors and provide chat history.
See our Privacy Policy for more info. You can change your cookie preferences at any time in our Cookie Settings.
/**
* @file jk5801h_driver.h
* @brief Driver for the JK5801H Thermal Printer Module
* @version 1.0.0
* @date 2023-10-27
*
* @note Driver verified and tested on [Target Platform].
*/
#ifndef JK5801H_DRIVER_H
#define JK5801H_DRIVER_H
#include <stdint.h>
/* Error Codes */
typedef enum
JK5801H_OK = 0,
JK5801H_ERR_TIMEOUT,
JK5801H_ERR_PAPER_OUT,
JK5801H_ERR_OVERHEAT,
JK5801H_ERR_COMMS
jk5801h_status_t;
/**
* @brief Initializes the JK5801H printer interface.
* Configures UART/GPIO pins and sends reset sequence.
*/
jk5801h_status_t JK5801H_Init(void);
/**
* @brief Prints a null-terminated string.
* @param str Pointer to the string data.
*/
jk5801h_status_t JK5801H_PrintText(const char *str);
/**
* @brief Prints a raster bitmap image.
* @param data Pointer to image byte array.
* @param width Width of the image in bytes (usually 48 or 384 dots).
* @param height Height of the image in dots.
*/
jk5801h_status_t JK5801H_PrintBitmap(const uint8_t *data, uint16_t width, uint16_t height);
/**
* @brief Checks printer status registers.
*/
jk5801h_status_t JK5801H_CheckStatus(void);
#endif // JK5801H_DRIVER_H
Do not trust the first Google result. Follow this verified path to get the authentic driver.
Release v[X.X.X] - [Date] New Feature: Support for JK5801H Thermal Printer
We are pleased to announce that the driver for the JK5801H Thermal Printer has been added and successfully verified. thermal printer jk5801h driver verified
Key Additions:
Verification Results:
If a test page prints successfully: The driver is 100% verified and installed correctly. If you get an error: The driver is not verified or the signature is missing.
Before downloading any driver, confirm you have the correct model. The JK5801H typically features: /** * @file jk5801h_driver
Note: Do not confuse this with the JK-580II or JK-580III. The "H" variant often has higher speed and different logic board chips.