2018-07-29 18:24:52 +02:00
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
USB_Init();
|
|
|
|
LTP1245_Init();
|
|
|
|
|
2018-08-04 11:30:00 +02:00
|
|
|
// LTP1245_FeedPaper(10);
|
2018-08-04 08:54:25 +02:00
|
|
|
|
|
|
|
uint8_t buff[LTP1245_LINEWIDTH / 8 * 16];
|
|
|
|
for(int i = 0; i < sizeof(buff); i++)
|
|
|
|
{
|
|
|
|
int shift = (i * 8 / (64 * 6)) % 8;
|
|
|
|
buff[i] = (0x11 << shift) | (0x11 >> (8 - shift));
|
|
|
|
}
|
|
|
|
|
2018-08-04 11:30:00 +02:00
|
|
|
// LTP1245_Print(buff, 16);
|
|
|
|
// LTP1245_Print(buff, 5);
|
|
|
|
// LTP1245_FeedPaper(10);
|
|
|
|
// Print_Text("Testy McTestFace", &Arpegius_32);
|
|
|
|
// Print_Text("123555bcD", &Messe_Duesseldorf_39);
|
|
|
|
Print_Text("Abcdef Ghi Jkl", &Hannover_Messe_Serif_26);
|
|
|
|
LTP1245_FeedPaper(16);
|
2018-08-04 08:54:25 +02:00
|
|
|
|
2018-07-29 18:24:52 +02:00
|
|
|
for(;;)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|