CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:15:19 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=28bce784eaaf4e702f19e8aed44621148d3f1aaf99a33c58381384db903a19f9a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22xyotPj8vz4mhYGVqR4E4jssRcZddbR1-%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d36e9a1fa76f7a-BLR
Attiny 45 Würfel (Arduino) - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //________________Variabeln_____________________
- int output_array[]={2,1,0,4};
- int arraylaenge =4;
- int zahl_kombi[7][4]={
- {0,1,1,1} //Ausgabe der Zahl 1
- ,{1,0,1,1} //Ausgabe der Zahl 2
- ,{0,0,1,1} //Ausgabe der Zahl 3
- ,{1,0,0,1} //Ausgabe der Zahl 4
- ,{0,0,0,1} //Ausgabe der Zahl 5
- ,{1,0,0,0} //Ausgabe der Zahl 6
- ,{1,1,1,1} //Ausgabe der Zahl 0 (Alle LED´s sind nun aus)
- };
- int input_Pin = 3;
- int array_Zahlen[100];
- int zahl = 0;
- //_____________Initalisierung__________________
- void setup()
- {
- for(int i;i<arraylaenge;i++)
- {
- pinMode(output_array[i],OUTPUT);
- }
- pinMode(input_Pin,INPUT);
- }
- //___________Hauptschleife______________________
- void loop()
- {
- zufall();
- }
- //____________Methoden____________________________
- void ausgabe(int mode)
- {
- for(int i;i<arraylaenge;i++)
- {
- if(zahl_kombi[mode][i]==1)
- {
- digitalWrite(output_array[i],HIGH);
- }
- else
- {
- digitalWrite(output_array[i],LOW);
- }
- }
- }
- void zufall()
- {
- while(digitalRead(input_Pin)==1) // Schaut ob eine Eingabe erfolgt ist.
- {
- ausgabe (6); // Setzt die Ausgabe zurück
- for(int a; a < 6; a++)
- {
- ausgabe(a);
- delay(1000);
- }
- ausgabe(random(0,6));
- }
- delay(100); // wartet 100 ms
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ S
JavaScript | 2 sec ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 11 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 20 sec ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 30 sec ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 40 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ T
JavaScript | 1 min ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 1 min ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ B
JavaScript | 1 min ago | 0.25 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