Notice
Recent Posts
Recent Comments
Creative Code
01_Serial_print.ino 본문
void setup() {
// put your setup code here, to run once:
Serial.begin(115200); // 통신속도 조절, serial을 쓰기위해서 반드시 써야한다.
Serial.println(78); //serial monitor에 출력
Serial.println(78,DEC); // 10진법
Serial.println(78,HEX); // 16진법
Serial.println(78,BIN); // 2진법
Serial.println(1.23456); //소수점아래 2자리까지 출력
Serial.println(1.23456,1); // 소수점 아래 1자리 까지 출력
Serial.println('N'); // 문자출력
}
void loop() {
// put your main code here, to run repeatedly:
}
'Arduino(C,C++)' 카테고리의 다른 글
04_Serial_Read (0) | 2023.08.10 |
---|---|
EX02_DC_MOTOR (0) | 2023.08.10 |
02_LED_ON_OFF-(3) (0) | 2023.08.10 |
02_LDE_ON_OFF -(2) (0) | 2023.08.10 |
02_LED_ON_OFF-(1) (0) | 2023.08.10 |