1. Download Pycharm and other operations
1. Baidu cloud download link
Link: https://pan.baidu.com/s/1tkbMzS5B_v-Cn4WQlTqS3Q?pwd=0108
Extraction code: 0108
2. Install
Follow the tutorial in the compressed package, you know.
2. Configure the microPython environment
1. Install the microPython plugin
1.1 File => Settings => Plugins
1.2 Search "microPython"
1.3 Click to install and restart Pycharm
2. Configure the operating environment
2.1 Upper right corner => edit Configurations...
2.2 Click "+" in the upper left corner and select microPython
2.4 In addition to the file path, the rest of the ticks are configured according to my configuration, then apply => OK
Don't forget, a Stop MicroPython REFL should be configured under Before Launch (as shown in the figure)
3. Test environment
1. Write something in main() and test it
Test code:
def do_connect():
print('Hello,CSDN')
def main():
do_connect()
if __name__ == "__main__":
main()
Run, everything works, OK.