| TX ||Primarily used as UART TX, but can also be used as a digital GPIO or PWM.
| TX ||Primarily used as UART TX, but can also be used as a digital GPIO or PWM.
|}
|}
+
+
== Les broches PWM ==
+
+
When you want to use the analogWrite() function on the Photon, for instance to smoothly dim the brightness of LEDs, you need to use pins that have a timer peripheral. People often call these PWM pins, since what they do is called Pulse Width Modulation. The Photon has 9 PWM pins: D0, D1, D2, D3, A4, A5, A7, RX and TX.
+
+
{{underline|'''Note:'''}}
+
+
The PWM timer peripheral is duplicated on two pins (A5/D2) and (A4/D3) for 7 total independent PWM outputs. For example: PWM may be used on A5 while D2 is used as a GPIO, or D2 as a PWM while A5 is used as an analog input. However A5 and D2 cannot be used as independently controlled PWM outputs at the same time.