From 593d482df935423f4bf635f083add6f417e21551 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 5 Nov 2022 01:34:16 +0100 Subject: [PATCH] Update servomotor example README file according to code --- servomotor/README | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/servomotor/README b/servomotor/README index 8b6d9e3..de908c9 100644 --- a/servomotor/README +++ b/servomotor/README @@ -22,12 +22,12 @@ Copyright 2016 Nathael Pajani This example shows the support of PWM for servo-motor control. Servo-motor position is set by reading on ADC input 0. -The PWM signal is output on port 0 pin 19 (LPC_TIMER_32B0_M1_PIO_0_19), using -32 bits timer 0, match channel 1. +The PWM signal is output on port 0 pin 23 (LPC_TIMER_32B1_M0_PIO_0_23), using +32 bits timer 1, match channel 0. The duty cycle is defined at the beginning of the code using "DUTY_INVERTED". -Set to "1" to get an inverted duty-cycle signal, for use with a single transistor -or mosfet. -Set to "0" to get a non-inverted signal, for use with two transistors or mosfets, -or with none. +Set DUTY_INVERTED to "1" to get an inverted duty-cycle signal, for use with a +single transistor or mosfet. +Set DUTY_INVERTED to "0" to get a non-inverted signal, for use with two +transistors or mosfets, or with none. -- 2.43.0