Notice
Recent Posts
Recent Comments
목록Arduino(C,C++) (20)
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 m..
Arduino(C,C++)
2023. 8. 10. 09:15
02_LED_ON_OFF-(1)
const int LED = 13; // 첫번째 LED 13번 핀에 연결 const int LED2 = 12; // 두번째 LED 12번 핀에 연결 void setup() { // put your setup code here, to run once: pinMode(LED,OUTPUT); //첫번째 LED 출력모드 pinMode(LED2,OUTPUT); // 두번째 LED 출력모드 } void loop() { // put your main code here, to run repeatedly: for (int i = 1; i
Arduino(C,C++)
2023. 8. 10. 09:14