Skip to content

Commit 91fb7c8

Browse files
committed
Add default values to pwm::start() method.
1 parent ee2d729 commit 91fb7c8

File tree

1 file changed

+1
-1
lines changed
  • source/include/adafruit/bbio

1 file changed

+1
-1
lines changed

source/include/adafruit/bbio/pwm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Pwm
3939
Pwm(std::string const& key);
4040
~Pwm();
4141

42-
void start(float duty_cycle, float frequency, Polarity);
42+
void start(float duty_cycle = 0.0, float frequency = 2000.0, Polarity = Polarity::Normal);
4343
void stop();
4444

4545
// 0.0 <= duty_cycle <= 100.0

0 commit comments

Comments
 (0)