1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Servo: fix arg types for std::min/max

This commit is contained in:
devyte
2017-11-05 02:19:46 -03:00
committed by Ivan Grokhotkov
parent 7ad89e58cd
commit 303a71deea
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ class Servo
public:
Servo();
uint8_t attach(int pin); // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure
uint8_t attach(int pin, int min, int max); // as above but also sets min and max values for writes.
uint8_t attach(int pin, uint16_t min, uint16_t max); // as above but also sets min and max values for writes.
void detach();
void write(int value); // if value is < 200 its treated as an angle, otherwise as pulse width in microseconds
void writeMicroseconds(int value); // Write pulse width in microseconds