0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

化石?なんかのやつ

0
Posted at

所感 
arduinoIEDとマイコンが接続不良起こしてる 
連絡事項 
先日のソースコードを変更  2秒ごとに光るように調整、LED二つに、動作確認できず。 
/* IRremoteライブラリを使用*/ 
#include  
  
/IRレシーバーとLEDが接続されているピンの番号を設定/ 
int receiverPin = 9; // IRレシーバーのピン 
int ledPin1 = 13; // 1つ目のLEDのピン 
int ledPin2 = 11; // 2つ目のLEDのピン 
  
/Arduinoが起動したときに一度だけ実行/ 
void setup() { 
  /* ArduinoがIR信号を受信*/ 
  IrReceiver.begin(receiverPin, true);  
  
  /LEDのピンを出力モードよってArduinoはこのピンに電圧を出力/ 
  pinMode(ledPin1, OUTPUT); 
  pinMode(ledPin2, OUTPUT); 
} 
  
/繰り返し実行される部分です。/ 
void loop() { 
  /IR信号を受信した後の処理/ 
  if (IrReceiver.decode()) { 
    /受信したIR信号が特定の値と一致したときの処理/ 
    if (IrReceiver.decodedIRData.decodedRawData == 0x00000000) { 
      /LEDを点灯/ 
      digitalWrite(ledPin1, HIGH); 
      digitalWrite(ledPin2, HIGH); 
  
      /二秒間隔/ 
      delay(2000); 
  
      /LEDを消灯/ 
      digitalWrite(ledPin1, LOW); 
      digitalWrite(ledPin2, LOW); 
  
      /2秒間待機/ 
      delay(2000); 
    } 
  
    /IRレシーバーを再開/ 
    IrReceiver.resume(); 
  } 
} 
 
 
本人の作業詳細 
※作業しながらメモを取り,作業後に作業時間を表記すること。作業記録なんでも残すこと。 
 
**作業確認してるときにCOM5(ポート)に接続できなくなり読み込みや作業確認ためのシリアルモニターも使用できなくなっていた再起、アンインストール試したが効果なし。 
 
 
 めっちゃ初期だね点滅確認かな

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?