nCube:Thyme for Arduino Development Environment Setup with Atom (PlatformIO IDE) (Korean) - IoTKETI/nCube-Thyme-Arduino GitHub Wiki
์๋์ด๋
ธ ๋ณด๋์ ๊ฐ๋ฐํ๊ฒฝ์ผ๋ก์ ๋ณดํต Arduino IDE ๋๋, PlatformIO IDE๊ฐ ์ฌ์ฉ๋๋ค.
์ด์ค, PlatformIO IDE๊ฐ ๊ฐ์ง๋ ์ด์ ์ ๋ค์๊ณผ ๊ฐ๋ค :
- 400๊ฐ ์ด์์ ์๋ฒ ๋๋ ๋ณด๋ ํธํ์ฑ.
- ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ด๋ฆฌ, intelligence code completion, and smart code linter. ์ด๋ฌํ ์ด์ ์ ๊ฐ์ง๋ PlatformIO IDE์ ์ค์น์ ๋ํ ๊ฐ์ด๋๋ฅผ ์ด ํ์ด์ง์์ ์ ๊ณตํ๋ค.
Atom Editor ๋ Github์ ์ํด ๊ฐ๋ฐ๋์์ผ๋ฉฐ, ๋ฌด๋ฃ๋ก ๋ฐฐํฌ๋๊ณ ์๋ค. package๋ค์ ์ค์นํ์ฌ ๋ค์ํ ๊ธฐ๋ฅ์ ์ถ๊ฐํ ์ ์๊ธฐ๋ ํ๋ค.
๋ํ, HTML, CSS, JavaScript์ ๊ฐ์ ์น ๊ธฐ์ ๋ก ๊ฐ๋ฐ๋์๊ธฐ ๋๋ฌธ์ UI๋ฅผ ๊ฐํธํ๊ฒ ํธ์งํ ์ ์๋ค.
Atom Editor official web site์์, ๊ฐ๋ฐํ๊ฒฝ์ OS์ ๋ง๋ ์ค์นํ์ผ์ ๋ค์ด๋ก๋ ๋ฐ์ ์ ์๋ค.
Atom Editor๋ ์ค์น๊ฐ ๋๋๋ค ์๋์ผ๋ก ์คํ๋๋ค.
Atom Editor์ File ํญ, Settings ๋ฉ๋ด๋ก ๋ค์ด๊ฐ install ๋ฉ๋ด ๋ฒํผ์ ํด๋ฆญํ๋ค.
์์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ด platformio-ide ํจํค์ง๋ฅผ ๊ฒ์ํ๊ณ ์ค์นํ๋ค.
Intelligence Code Completion๊ธฐ๋ฅ์ ์ํด Clang์ด ์๊ตฌ๋๋ค.
LLVM official web site์์ LLVM 3.9.1 ๋ฒ์ ์ ๋ค์ด๋ก๋ ๋ฐ๊ณ , ์ค์นํ๋ค.
LLVM ์ค์น์ Intelligence Code Completion์ ๋ํ ๋ ์์ธํ ์ ๋ณด๋ PlatformIO installation guide document์์ ์ป์ ์ ์๋ค.
https://github.com/IoTKETI/nCube-Thyme-Arduino
์์ nCube:Thyme for Arduino github ํ์ด์ง์์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ค์ด๋ก๋ ๋ฐ๊ณ , ์์ถ์ ํ์ด์ค๋ค.
Atom Editor์ PlatformIO ํด๋ฐ์ ์๋ ํ ์์ด์ฝ์ ํด๋ฆญํ๊ณ , New Project ๋ฒํผ์ ํด๋ฆญํ์ฌ ์๋ก์ด ํ๋ก์ ํธ๋ฅผ ์์ฑํ๋ค.
Board์ Framework๋ฅผ ์ด์ฉ์์ ํ๊ฒฝ์ ๋ง์ถฐ ์ ํํ๊ณ , Finish ๋ฒํผ์ ๋๋ฌ ์๋ก์ด ํ๋ก์ ํธ ์์ฑ์ ๋ง๋ฌด๋ฆฌํ๋ค.
C:\Users\[User account]\Documents\PlatformIO\Projects
์์ ๊ฒฝ๋ก์์ ์๋ก ์์ฑํ ํ๋ก์ ํธ๋ฅผ ์ฐพ์ ์ ์์ผ๋ฉฐ, Atom Editor๋ก ํ๋ก์ ํธ๋ฅผ ๋ถ๋ฌ์ค๊ธฐ ์ํด Fileํญ์ Add Project Folder ๋ฉ๋ด๋ฅผ ํด๋ฆญํ์ฌ ํ๋ก์ ํธ๋ฅผ ๋ถ๋ฌ์จ๋ค.
์์์ ๋ค์ด๋ก๋ ๋ฐ๊ณ ์์ถ์ ํ์ด๋์๋ nCube:Thyme for Arduino ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์
C:\Users\[User account]\Documents\PlatformIO\Projects\[Project name created]\lib ๋๋ ํ ๋ฆฌ ์๋๋ก ์ฏ๊ฒจ์ค๋ค.