Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 3D프린트
- 3d print
- 프린트
- 3dprinter
- Arduino IDE
- 프린터
- 아두이노 구조
- 3D 프린터
- 아두이노 IDE
- 아두이노
- Arduino Reference
- 3D프린터
- 3D 프린트
- 엔더
- 아두이노 레퍼런스
- printer
- 3d
- 3d printer
- reference
- 엔더3
- 3DPrint
- 아두이노 소프트웨어
- ender 3
- 필라멘트
- PLA
- ENDER-3
- 아두이노 문법
- ender3
- Arduino
Archives
- Today
- Total
키위백과의 잡동사니
FUNCTIONS : micros() 본문
설명(Description)
Arduino 보드가 현재 프로그램을 실행한 후 마이크로 초를 반환합니다. 이 숫자는 약 70분 후에 오버플로합니다.(0으로 되돌아갑니다.) 16MHz Arduino 보드에서이 함수의 분해능은 4마이크로 초입니다(즉 반환 된 값은 항상 4의 배수 임). 8MHz Arduino 보드에서이 기능의 분해능은 8마이크로 초입니다.
문법(Syntax)
time = micros()
파라미터(Parameters)
없음.
반환(Returns)
Arduino 보드 실행 한 후 us 수 (unsigned long)
예제 코드(Example Code)
이 코드는 Arduino 보드가 시작된 이후 us(microseconds)를 반환합니다.
unsigned long time; void setup(){ Serial.begin(9600); } void loop(){ Serial.print("Time: "); time = micros(); Serial.println(time); //prints time since program started delay(1000); // wait a second so as not to send massive amounts of data }
메모 및 주의(Notes and Warnings)
1,000us(microseconds)는 1ms(milliseconds)이고, 1,000,000us(microseconds)는 1s(seconds)입니다.
'아두이노 > 참조(Reference)' 카테고리의 다른 글
아두이노 참조 번역 중단 (0) | 2019.02.08 |
---|---|
FUNCTIONS : millis() (0) | 2018.05.04 |
FUNCTIONS : delay() (0) | 2018.05.04 |
FUNCTIONS : digitalWrite() (0) | 2018.05.03 |
FUNCTIONS : pinMode() (0) | 2018.05.02 |
Comments