Get it on Google Play


Wm뮤 :: 아두이노 헤더 예제

블로그 이미지
가끔 그림그리거나 3D모델링하거나
취미로 로봇만드는
퇴직한 전자과 게임프로그래머
2020.3.48f1 , 2022.3.6f1 주로 사용
모카쨩
@Ahzkwid

Recent Comment

Archive


2021. 7. 15. 00:21 아두이노

 

 

본문코드

#include "HeaderTest.h"
void setup() {
  WireBegin();
  Serial.begin(9600);
}

void loop() {
    Serial.println("t:"+String( ReturnTwo()));
  delay(1000);
}

 

 

헤더코드

//HeaderTest.h
#include<Wire.h>

long _time = millis();
long _time_save = _time;

void WireBegin()
{
  Wire.begin();      
}
int ReturnTwo()
{
  return 2;
}

'아두이노' 카테고리의 다른 글

아두이노 LCD 1602  (0) 2021.07.16
자주쓰는 아두이노 코드 모음  (0) 2021.06.21
byte to hex  (0) 2021.02.23
posted by 모카쨩

  • total
  • today
  • yesterday

Recent Post

저사양 유저용 블로그 진입