Skip to content

compilation error:Arduino UNO4 Minima #10

@Yama335

Description

@Yama335

c:\Users\user\OneDrive\yamatoshare\program\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'uint8_t PWMServo::attach(int, int, int)':
c:\Users\user\OneDrive\yamatoshare\program\Arduino\libraries\PWMServo\PWMServo.cpp:241:30: error: call of overloaded 'begin(int, int)' is ambiguous
if (!pwmOut->begin(20000, 0)) {
^
In file included from c:\Users\user\OneDrive\yamatoshare\program\Arduino\libraries\PWMServo\PWMServo.h:57:0,
from c:\Users\user\OneDrive\yamatoshare\program\Arduino\libraries\PWMServo\PWMServo.cpp:2:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.5.1\cores\arduino/pwm.h:24:10: note: candidate: bool PwmOut::begin(uint32_t, uint32_t, bool, timer_source_div_t)
bool begin(uint32_t period_usec, uint32_t pulse_usec, bool raw = false, timer_source_div_t sd = TIMER_SOURCE_DIV_1);
^~~~~
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.5.1\cores\arduino/pwm.h:25:10: note: candidate: bool PwmOut::begin(float, float)
bool begin(float freq_hz, float duty_perc);
^~~~~
exit status 1

Compilation error: exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions