개발 블로그
close
프로필 사진

개발 블로그

github: @denev6

  • ALL
    • Troubleshooting
    • Network
      • NetWork
      • Linux
      • Rocky Linux
      • Ubuntu
      • Docker
      • Oracle VM Virtualbox
      • Windows
      • Raspberry Pi 5
      • Jenkins
      • ETC
    • Arduino
      • Linux
      • Windows
    • C++
    • Android
    • Spring
    • STS4
    • SSR
    • Javascript
    • Python
    • React
    [C++] ESP32 모듈화(’.h’, ‘.cpp’를 이용한 코드 분리)

    [C++] ESP32 모듈화(’.h’, ‘.cpp’를 이용한 코드 분리)

    한 번 해보니 좀 재밌어서 ino 파일 하나에다가 묶기에는 좀 길어질 것 같기도하고 뭐든 모듈화시켜서 분리해놓으면 재사용도 좋고.. 이래저래 생각해보니 파일을 나눠놓는 게 좋을 것 같아서 분리 작업을 진행했다. root@WAS-1:/arduino# tree.├── arduino.ino└── README.txt 원래는 위 구조와 같이 되어있었다. README.txt는 명령어 실행할 때 찾아보기 쉽게 적어놓은거라.. 여튼 이렇게 되어 있었는데 이렇다보니 저 소스코드에 집약적으로 넣는다는 게 비효율적 같았다. 기존 ino 파일은 아래와 같다. #include #include #include #include const char* ssid = "";const char* pwd = "";co..

    • format_list_bulleted C++
    • · 2025. 3. 30.
    • navigate_before
    • 1
    • navigate_next
    공지사항
    전체 카테고리
    • ALL
      • Troubleshooting
      • Network
        • NetWork
        • Linux
        • Rocky Linux
        • Ubuntu
        • Docker
        • Oracle VM Virtualbox
        • Windows
        • Raspberry Pi 5
        • Jenkins
        • ETC
      • Arduino
        • Linux
        • Windows
      • C++
      • Android
      • Spring
      • STS4
      • SSR
      • Javascript
      • Python
      • React
    인기 글
    전체 방문자
    오늘
    어제
    Copyright © 이주여이 모든 권리 보유.
    SKIN: Copyright © 쭈미로운 생활 All rights reserved. Designed by JJuum.
    and Current skin "dev-roo" is modified by Jin.

    티스토리툴바