CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 04:10:49 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=143234dd830dc972710ac0427aa9d735ccbb6743a041736177089d44a1815172a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22RDhz4oPWURSlvItNXh34j6Hblej2WPbf%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cb82889bef8cf1-BLR
button press corresponding lights - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const int buttonPin = 2;
- const int ledPin0 = 13; //green light
- const int ledPin1 = 12; //yellow light
- const int ledPin2 = 11; //red light
- int count = 0;
- // variables will change:
- int buttonState = 0;
- void setup() {
- pinMode(ledPin0, OUTPUT);
- pinMode(ledPin1, OUTPUT);
- pinMode(ledPin2, OUTPUT);
- pinMode(buttonPin, INPUT);
- }
- void loop(){
- buttonState = digitalRead(buttonPin);
- if (buttonState == HIGH) {
- count++;
- if (count >= 4) {
- count = 0;
- }
- }
- else {
- digitalWrite(ledPin0, LOW);
- digitalWrite(ledPin1, LOW);
- digitalWrite(ledPin2, LOW);
- }
- if (count == 1) {
- digitalWrite(ledPin0, HIGH);
- }
- else {
- digitalWrite(ledPin0, LOW);
- }
- if (count == 2) {
- digitalWrite(ledPin1, HIGH);
- }
- else {
- digitalWrite(ledPin1, LOW);
- }
- if (count == 3) {
- digitalWrite(ledPin2, HIGH);
- }
- else {
- digitalWrite(ledPin2, LOW);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ X
JavaScript | 9 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ W
JavaScript | 20 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ V
JavaScript | 31 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ X
JavaScript | 2 min ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ W
JavaScript | 2 min ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ V
JavaScript | 2 min ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 5
JavaScript | 2 min ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ 3
JavaScript | 2 min ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand