Menu

📰
0

Reddit - Please wait for verification

Reading 0:00
15s threshold

/* tests the following: Potentiometer on VP(36) Potentiometer on VN(39) MQ2 A0 on 34, D0 on 35 Joystick X on 33, Y on 32, SW on 25 Ultrasonic Sensor Trig 26, Echo 27 Servo on 14 Ir on 12 DHT11 on 13 L298N on (look down) //L298NONLY LEFT OLED SDA on 21, SCL on 22 */ //one pushbutton on 19 //one pushbutton on 18 //one pushbutton on 5 const int pot = 36; const int pot2 = 39; const int MQAO = 34; const int MQDO = 35; const int JoyX = 33; const int JoyY = 32; const int JoySW = 25; const int trig = 26; const int echo = 27; const int IR = 12; const int button1 = 19; const int button2 = 18; const int button3 = 5; const int IN1 = 17; const int IN2 = 16; const int IN3 = 4; const int IN4 = 23; const int InputPins[] = { pot, pot2, MQAO, MQDO, JoyX, JoyY, JoySW, echo, IR }; const int OutputPins[] = { IN1, IN2, IN3, IN4, trig }; const int BUTTONS[] = { button1, button2, button3 }; #include #include #include #include Adafruit_SSD1306 display(128, 64, &Wire, -1); #include DHT dht(13, DHT11); #include Servo Servo;…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More