I want to know the PWM pin for core and photon, anyone could tell me, I know it can obtained from documentation, however I am currently in China, can’t get access to the documentation right now .
On the Core, this function works on pins A0, A1, A4, A5, A6, A7, D0 and D1.
On the Photon, this function works on pins D0, D1, D2, D3, A4, A5, WKP, RX and TX with a caveat: 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.
If you can access github, try this: https://github.com/spark/docs/blob/master/src/content/reference/firmware.md