printf("ho_tari\n");

01_Serial_print 본문

Arduino

01_Serial_print

호타리 2023. 9. 2. 12:33
void setup() {
  // put your setup code here, to run once:
  //printf("hello, world..!!");
  Serial.begin(115200);
  Serial.println("Hello World..!!");
  Serial.println(78);
  Serial.println(1.23456);
  Serial.println('N');

  Serial.print("Hello World..!!");
  Serial.print(78);
  Serial.print(1.23456);
  Serial.print('N');

  Serial.println();

  Serial.println(78, DEC);
  Serial.println(78, HEX);
  Serial.println(78, BIN);

  Serial.println(1.23456, 0);
  Serial.println(1.23456, 4);
  Serial.println(1.23456, 2);
}
                                                                                                           
void loop() {
  // put your main code here, to run repeatedly:
  //Serial.println("Hello World..!!");
}

'Arduino' 카테고리의 다른 글

06_Switch_Input_Interrupt  (0) 2023.09.02
05_Switch_Input  (0) 2023.09.02
04_Serial_Read  (0) 2023.09.02
03_Analog_Write  (0) 2023.09.02
02_LED_ON_OFF  (0) 2023.09.02