Skip to content

Commit 410f9c5

Browse files
committed
docs: Modified analog macros name.
Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent 480c128 commit 410f9c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/arduino-deviations.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ Analog pins for XMC14_2GO
160160

161161
On the **XMC14_2GO board**, **pins 12 and 13 are incorrectly named**
162162
- Correct mapping:
163-
-pin 12 -> 'A1' (also index '0')
164-
-pin 13 -> 'A0' (also index '1')
163+
-pin 12 -> 'A1'
164+
-pin 13 -> 'A0'
165165

166166
**Correct Usage:**
167167
Use the analog pin defintions instead of 12 and 13 numbers:
168-
analogRead(0); //Instead of using pin 12
169-
analogRead(1); //Instead of using pin 13
168+
analogRead(A0); //Instead of using pin 12
169+
analogRead(A1); //Instead of using pin 13
170170

171171
I2C Analog pins
172172
^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)