2018-07-29 18:24:52 +02:00
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2018-08-04 17:00:41 +02:00
|
|
|
RCC->APB2ENR |= RCC_APB2ENR_IOPCEN;
|
|
|
|
|
|
|
|
GPIOC->CRH = (GPIOC->CRH
|
|
|
|
& ~(0x0f << (4 * PIN_LED - 32)))
|
|
|
|
| (0x01 << (4 * PIN_LED - 32)) // Output, max. 10 MHz
|
|
|
|
;
|
2018-08-04 08:54:25 +02:00
|
|
|
|
2018-08-23 11:17:49 +02:00
|
|
|
Camera_Init();
|
|
|
|
LTP1245_Init();
|
|
|
|
|
|
|
|
|
|
|
|
char buff[30] = "Build No. ";
|
|
|
|
itoa(BUILD_NUMBER, buff + strlen(buff), 10);
|
2018-08-04 15:20:55 +02:00
|
|
|
Print_Text(buff, &Messe_Duesseldorf_39);
|
2018-08-04 08:54:25 +02:00
|
|
|
|
2018-08-23 11:17:49 +02:00
|
|
|
LTP1245_FeedPaper(2);
|
|
|
|
|
|
|
|
strcpy(buff, "Line count: ");
|
|
|
|
extern int LineCount;
|
|
|
|
itoa(LineCount, buff + strlen(buff), 10);
|
|
|
|
Print_Text(buff, &Hannover_Messe_Serif_26);
|
|
|
|
|
2018-08-04 16:11:18 +02:00
|
|
|
LTP1245_FeedPaper(10);
|
2018-08-23 11:17:49 +02:00
|
|
|
// LTP1245_FeedPaper(10);
|
|
|
|
// LTP1245_Cut();
|
2018-08-04 08:54:25 +02:00
|
|
|
|
2018-07-29 18:24:52 +02:00
|
|
|
for(;;)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|