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?

原点に戻って約1アンペアのLチカから再スタート

Posted at

原点に戻って約1アンペアのLチカから再スタート

TLP-A100とTLP-P055を使用して約1A出力のLチカやってみました。

ソースコード

#define PIN_LED 5

boolean gLED;

void setup() {
  // put your setup code here, to run once:
  pinMode( PIN_LED, OUTPUT );
  digitalWrite(PIN_LED, LOW);
  gLED = false;
}

void loop() {
  // put your main code here, to run repeatedly:
  if ( gLED ) {
    gLED = false;
    digitalWrite(PIN_LED, LOW);
  } else {
    gLED = true;
    digitalWrite(PIN_LED, HIGH);
  }
  
  delay(1000);
}
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?