You are right, it does clearly state that RX and TX pins can be used for PWM. However, when I make the following statement in the particle CLI, I am returned with a -1.
particle call MyPhoton analogwrite TX=50
-1
I am obviously missing something, but I don't know what! Am I supposed to make the call using something else to identify the TX pin. For instance the DAC and WKP pins can be called using A6 and A7, respectively, correct? I thought using A8 and A9 for TX and RX might work, but did not seem to.
@Skycocker, I can only assume your Photon is running Tinker, which explains why you are trying to send that command to it. Tinker is not “built-in” to a Photon. It is simply an application like any other. In fact, the code is available as a library on the Web IDE!
All this to say that Tinker does not support any commands relating to the TX and RX pins. You could take the source code, modify it to add those pins for control and boom, you have what you need!
Yes, I should have been clearer with my question that my photon was running Tinker! It’s a great tool for isolating hardware issues, unless I don’t what I’m doing!