JetBrains / intellij-micropython

Plugin for MicroPython devices in PyCharm and IntelliJ
https://plugins.jetbrains.com/plugin/9777-micropython
Apache License 2.0
506 stars 106 forks source link

Missing definitions for ADC, TouchPad, onewire, ds18x20, ubinascii #74

Open hansonap opened 5 years ago

hansonap commented 5 years ago

Maybe I'm missing something, but this plugin seems to not recognize many of micropython's modules. For example from machine import Pin, ADC, TouchPad recognizes Pin but not ADC or TouchPad. Other modules I've come across that are not recognized:

I'd be happy to help remedy this situation - although I've never worked with PyCharm plugins so will need a little pointing in the right direction.

vlasovskikh commented 5 years ago

You're talking about ESP8266 devices, right?

There is a PR #76 about ADC, you can look at it and do it in the same way. The basic idea is that in the plugin we cover these modules with Python type hinting stubs (see PEP 484 for more info).

junhuanchen commented 5 years ago

in here https://github.com/vlasovskikh/intellij-micropython/tree/master/typehints.

Maybe you need to add it yourself.

Try to write pyi based on other libraries.XD

Josverl commented 1 year ago

Micropython stub packages on PyPI