Can't import PMW

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
mc2software
Posts: 3
Joined: Wed Jan 13, 2021 6:08 pm
Location: Northern Florida

Can't import PMW

Post by mc2software » Wed Jan 13, 2021 6:19 pm

I've flashed my ESP32S with esp32-idf4-20200902-v1.13. I'm just getting my feet wet with mp and trying out a classic multi=push button/led app. This is the result of

Code: Select all

from machine import Pin, PWM


at a >>> prompt:

Code: Select all

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: can't import name PMW

User avatar
Roberthh
Posts: 2295
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Can't import PMW

Post by Roberthh » Wed Jan 13, 2021 7:39 pm

The PWM module is called PWM, like you wrote in the first box, not PMW.

mc2software
Posts: 3
Joined: Wed Jan 13, 2021 6:08 pm
Location: Northern Florida

Re: Can't import PMW

Post by mc2software » Wed Jan 13, 2021 8:09 pm

My Dyslexia strikes again. Can't believe how many times I thought I was writing PWM. Thanks!

Post Reply