Hot answers tagged

2

int sensor = 900; //variabel sensor void setup() { Serial.begin(9600); while (!Serial); randomSeed(analogRead(A0)); } int number() { int a = random(0, 10); //range pengurang nilai sensor int d = random(500, 1500); //range delay perubahan nilai if (sensor < 670) { sensor = 900; } sensor -= a; delay(d); ...


1

Currently you are shifting in the button states and directly shifting them out again to the LEDs. Thus the state of the LEDs follows exactly the state of the buttons. As jsotola explained in the comments, you need to seperate what you get as input (buttons and serial) from what you set as output. For this you need 1 or more variables to hold the state of ...


1

Which are the minimum connections I have to make between Arduino UNO and the LCD screen. The TFT screen plugs right on top of your Arduino Uno. I have a "cheaper" model with the same size screen and identical pins as your screen (exact same text printed beside the pins). Before you plug it in, I have a few pieces of advise. It's possible to install the ...


Only top voted, non community-wiki answers of a minimum length are eligible