2024年12月14日土曜日

Arduino Lチカ 作:NISSY

https://youtu.be/DpbK3_-UrEI?si=SEsuLYibp1ehwUfS


void setup() {
  // put your setup code here, to run once:
 pinMode(10,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(10,HIGI);
 delay(1000);
 digitalWrite(10,LOW);
 delay(1000);
}

Arduino スイッチ 作:NISSY

https://youtu.be/q5v_iSRmkFk?si=dB8X9KDlg_L_dsDJ



void setup() {
  // put your setup code here, to run once:
 pinMode(10,OUTPUT);
 pinMode(8, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
 if(digitalRead(8)==HIGH){
  digitalWrite(10, LOW);  
}else{
  digitalWrite(10, HIGH);
}
}

善光寺平ロボコン2025 2025年10月25日

https://n-robo.com/zenkoji/n_robo2025/index_02.html#kekka 結果のページ ご協力、応援ありがとうございました。