Fix analogWrite ambiguity

This commit is contained in:
Scott Lahteine
2019-07-02 04:04:49 -05:00
parent d6265df962
commit d4415dcf59
8 changed files with 16 additions and 16 deletions

View File

@ -192,7 +192,7 @@ void HAL_adc_start_conversion(uint8_t adc_pin) {
HAL_adc_result = mv*1023.0/3300.0;
}
void analogWrite(int pin, int value) {
void analogWrite(pin_t pin, int value) {
if (!PWM_PIN(pin)) return;

View File

@ -98,7 +98,7 @@ void _delay_ms(int delay);
int freeMemory(void);
void analogWrite(int pin, int value);
void analogWrite(pin_t pin, int value);
// EEPROM
void eeprom_write_byte(uint8_t *pos, unsigned char value);