Add simple HPGL parser, PWM output

This commit is contained in:
fruchti 2020-11-28 23:01:21 +01:00
parent 7234eb8360
commit 57f486a4d2
11 changed files with 439 additions and 8 deletions

View file

@ -34,17 +34,19 @@ int main(void)
Clock_Init();
LED_Init();
USB_Init();
Output_Init();
LED_ON();
uint8_t buffer[32];
// uint8_t buffer[32];
for(;;)
{
int length = USBCDC_ReceiveData(buffer, sizeof(buffer));
if(length)
{
USBCDC_SendData(buffer, length);
}
// int length = USBCDC_ReceiveData(buffer, sizeof(buffer));
// if(length)
// {
// USBCDC_SendData(buffer, length);
// }
// __WFI();
HPGL_Poll();
}
}