sorta working, control needs to be improved
This commit is contained in:
@@ -173,7 +173,10 @@ void SoftPWMSetPolarity(int8_t pin, uint8_t polarity) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SoftPWMSetPercent(int8_t pin, uint8_t percent, uint8_t hardset)
|
||||
{
|
||||
SoftPWMSet(pin, ((uint16_t)percent * 255) / 100, hardset);
|
||||
}
|
||||
|
||||
void SoftPWMSet(uint8_t pin, uint8_t value, uint8_t hardset) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user