Add simple HPGL parser, PWM output
This commit is contained in:
parent
7234eb8360
commit
57f486a4d2
11 changed files with 439 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue