-
ESP32 DevKit V4 아두이노 개발환경 설정 및 간단한 스케치ESP32 2018. 11. 25. 05:53
아두이노 설치
아래의 사이트에서 다운로드 후 설치
https://www.arduino.cc/en/Main/Software
Win7은 아래의 내용을 클릭 후 다운로드 후 설치..
Windows Installer, for Windows XP and up
Dark theme설치 (기본 테마는 에디터가 흰색 바탕이어서 눈이 피로함.)
https://github.com/jeffThompson/DarkArduinoTheme
Clone or download 클릭 후 다운로드
압축을 풀고 설치폴더/lib폴더에 있는 theme 폴더의 이름을 theme_default로변경 후 압축푼 폴더에 있는 theme폴더를 /lib폴더에 복사해 넣고 아두이노 재시작.
기본폰트가 너무 작고 모노스페이스가 아니므로 폰트변경
파일 -> 환경설정 창 하단의
C:\Users\user-name\appData... \preferences.txt를 에디터에서 열고 아래와 같이 수정
editor.antialias=true
editor.auto_close_braces=true
editor.caret.blink=true
editor.code_folding=false
editor.divider.size=2
editor.external=false
editor.font=D2Coding,plain,18 폰트 및 크기 변경 18이 폰트 크기
editor.indent=true
editor.invalid=false
editor.keys.alternative_cut_copy_paste=true
editor.keys.home_and_end_beginning_end_of_doc=false
editor.keys.shift_backspace_is_delete=true
editor.languages.current=
editor.linenumbers=false
editor.save_on_verify=true
editor.tabs.expand=true
editor.tabs.size=4
editor.window.height.default=1000
editor.window.height.min=700
editor.window.width.default=1280
editor.window.width.min=1024
ESP32 환경 설정
파일 -> 환경설정에서
아래의 내용을 복사
https://github.com/espressif/arduino-esp32/releases/download/1.0.0/package_esp32_dev_index.json 또는
https://dl.espressif.com/dl/package_esp32_index.json 을 복사툴 -> 보드 -> 보드매니저 창을 띄우면 맨 아래에 esp32 by Esspr.... System 이 있고 설치 버튼이 있는데 이를 클릭..
설치가 끝나면 툴 -> 보드에서 ESP32 Dev Module을 선택
툴 -> 포트에서 ESP32 Dev Kit에 연결된 컴포트를 선택한다.
간단한 스케치 작성
Flashing할 때 Boot버튼을 보드와 연결될 동안 계속 누르고 있어야 라이팅이 제대로 동작함.
아니면
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
에러 발생..
IO15번핀이 1초 간격으로 깜박임.