pwm in MCU added

This commit is contained in:
Tristan Krause 2019-05-28 11:12:58 +02:00
parent 5f48849c4e
commit 1f53117577
7 changed files with 48 additions and 40 deletions

View file

@ -216,3 +216,13 @@ void rqAdcDacStroke()
usart.writeByte(USART::MSG_OK);
usart.flush();
}
void rqSetPwm()
{
usart.initTX();
uint16_t value = usart.readByte();
OCR0A = value;
usart.writeByte(USART::MSG_OK);
usart.flush();
}