Commit e2a2c5c1 authored by MagoKimbra's avatar MagoKimbra

Fix Servo.ccp

Thank tronicman
parent 3e76a6b1
......@@ -48,7 +48,7 @@
#include <avr/interrupt.h>
#include <Arduino.h>
#include "Servo.h"
#include "servo.h"
#define usToTicks(_us) (( clockCyclesPerMicrosecond()* _us) / 8) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009
#define ticksToUs(_ticks) (( (unsigned)_ticks * 8)/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment