We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e99bd4d commit a6b744fCopy full SHA for a6b744f
libraries/Servo/src/nrf52/ServoTimers.h
@@ -28,11 +28,14 @@
28
* NRF52 Only definitions
29
* ---------------------
30
*/
31
-
32
-#define MIN_PULSE 55
33
-#define MAX_PULSE 284
+//PWM_PRESCALER_PRESCALER_DIV_128 -> NRF_PWM_CLK_125kHz -> resolution 8µs
+//MaxValue = 2500 -> PWM period = 20ms
+//20ms - 50Hz
34
+#define DUTY_CYCLE_RESOLUTION 8
35
+#define MAXVALUE 2500
36
+#define CLOCKDIV PWM_PRESCALER_PRESCALER_DIV_128
37
38
// define one timer in order to have MAX_SERVOS = 12
39
typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;
40
-#endif // __SERVO_TIMERS_H__
41
+#endif // __SERVO_TIMERS_H__
0 commit comments