Add basic thermal printer control

This commit is contained in:
fruchti 2018-07-29 18:24:52 +02:00
commit c695969e59
23 changed files with 1762 additions and 0 deletions

14
src/ltp1245.h Normal file
View 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);