1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-22 08:22:04 +03:00

Servo library refactoring. See #1617

This commit is contained in:
Cristian Maglie
2013-10-15 09:41:18 +02:00
parent fd26f72e00
commit e8834d32f3
3 changed files with 3 additions and 4 deletions

View File

@ -19,6 +19,7 @@
#include <Arduino.h>
#include <Servo.h>
#include "ServoTimers.h"
#define usToTicks(_us) (( clockCyclesPerMicrosecond() * _us) / 32) // converts microseconds to tick
#define ticksToUs(_ticks) (( (unsigned)_ticks * 32)/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds