pwm in MCU added
This commit is contained in:
parent
5f48849c4e
commit
1f53117577
7 changed files with 48 additions and 40 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue