Open
Description
>process.env
={
"VERSION":"1v61",
"BUILD_DATE":"Apr 10 2014",
"BUILD_TIME":"16:10:27",
"BOARD":"ESPRUINOBOARD",
"CHIP":"STM32F103RCT6",
"CHIP_FAMILY":"STM32F1",
"FLASH":262144,"RAM":49152,
"SERIAL":"34ffd505-41563235-08610743",
"CONSOLE":"USB"
}
>
On a significant number of supposed PWM pins, any analogWrite() command results in the pin being held high full time.
For example:
analogWrite(C6,0); results in a voltage of 3.3v on the pin (static measurement).
digitalWrite(C6,0); results in a voltage of 20-30mv on the pin.
This does not effect all PWM pins
analogWrite(C7,0); results in a voltage of 20-30mv on the pin.
C6, C8, and B0 are definitely effected. B1, C7, C9 and A7 are not.
This can be demonstrated easily with a LED+resistor between the pin and ground. Any analogWrite() to that pin will turn the LED on full-time, even analogWrite(pin,0);