I tried to use pycharm for micropython(ESP8266) and follow "https://blog.jetbrains.com/pycharm/2018 ... r-pycharm/" to config pycharm & install micropython plug-in.
After that pycharm detected my ESP8266, but having a problem while trial demo program(show below)
Code: Select all
import utime
from machine import Pin
def main():
led = Pin(2, Pin.OUT)
enabled = False
while True:
if enabled:
led.off()
else:
led.on()
utime.sleep_ms(1000)
enabled = not enabled
if __name__ == '__main__':
main()
Please share your comments.
BR