Add basic thermal printer control
This commit is contained in:
commit
c695969e59
23 changed files with 1762 additions and 0 deletions
14
src/ltp1245.h
Normal file
14
src/ltp1245.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "stm32f1xx.h"
|
||||
|
||||
typedef int (*LTP1245_DataProvider_t)(uint8_t *buffer);
|
||||
|
||||
#define LTP1245_MAX_DRIVE_FREQ 473 // In Hz
|
||||
#define LTP1245_BUFFER_LINES 64
|
||||
|
||||
#define LTP1245_TH_REXT 10 // In kΩ
|
||||
|
||||
void LTP1245_Init(void);
|
||||
Loading…
Add table
Add a link
Reference in a new issue