// tb67h450 single dc motor driver at 1.5vx4 box Uno only
const int IN1 = 5;
const int IN2 = 6;
void setup(){
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
}
void loop(){
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
analogWrite(IN1, 255);
delay(1000);
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
delay(500);
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
analogWrite(IN2, 255);
delay(1000);
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
delay(500);
}
----------------------- sleep on uno ---------------------------------
https://omoroya.com/arduino-extra-edition-13/#toc5 :: same content
------------------------deeo sleep on esp32------------------
https://micropython-docs-ja.readthedocs.io/ja/latest/esp32/tutorial/intro.html
https://it-evo.jp/blog/blog-1441/ :: asyncWebserver using micropython
0 件のコメント:
コメントを投稿