사물인터넷IoT

microPython 을 이용하기 위한 준비

아이티제어 2022. 8. 21. 08:02
c:\Python310\python.exe -m pip install --upgrade pip

1) 파이선을 이용하기 위해서 파이참  IDE프로그램을 이용한다.
이유는 편리하게 여러가지 이점이 있다..
무료로도 사용가능하다.
설치 https://www.jetbrains.com/

 

JetBrains: Essential tools for software developers and teams

JetBrains is a cutting-edge software vendor specializing in the creation of intelligent development tools, including IntelliJ IDEA – the leading Java IDE, and the Kotlin programming language.

www.jetbrains.com

2) 파이참 한글 plugin을 설치

한글 플러그인 설치후 재시작 한모습

3) micropython 플러그인 설치

micropython  플러그인 설치 된모습. 활성화 상태.

4) 깃허브에서 소스파일 다운로드 

https://github.com/JetBrains/intellij-micropython

 

GitHub - JetBrains/intellij-micropython: Plugin for MicroPython devices in PyCharm and IntelliJ

Plugin for MicroPython devices in PyCharm and IntelliJ - GitHub - JetBrains/intellij-micropython: Plugin for MicroPython devices in PyCharm and IntelliJ

github.com

 

5)  압축풀고 압축푼 폴더를 파이참으로 연다.

pipenv   없다고 나온다. 설치한다.

pipenv   없다네

6) pipevn 없다니까 설치.

pip install  --user pipenv

pipenv설치,( pip업그레이드 실패, 관리자모드가 아니라)

7) 버전이 업데이트 하라니까. 업데이트

 

c:\Python310\python.exe -m pip install --upgrade pip

 

pip업그레이드  (관리자모드-->성공)
pip 22.2.2버전 현재

8) 파일 > 환경 > "언어 및 프레임워크"

요구 사항

  • PyCharm 2020.3+ 또는 IntelliJ 2020.3+
  • 파이썬 3.5+
    • MicroPython 언어 버전은 3.5입니다. 최신 버전을 선택하는 경우 "파일 | 설정 | 편집기 | 검사 | Python | 코드 호환성 검사" 를 켜고 Python 3.5를 호환성 목록에 추가하십시오.
  • Python 플러그인(IntelliJ만 해당)
  • 최신 버전의 MicroPython 펌웨어가 보드에 플래시된 지원되는 MicroPython 개발 보드 
  •  

Enable Micropython Support

 

 

다음번엔  PICO 프로그램 다운로드 를해야겠다.!!

'사물인터넷IoT' 카테고리의 다른 글

최저가ioT스위치제작방법  (0) 2022.07.19