/*void setup() {
// put your setup code here, to run once:
randomSeed(analogRead(A0));
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
int stevilo=random(1,11); // 1..10
Serial.println(stevilo);
delay(500);
}*/
bool m=LOW;
bool m1=LOW;
int seznam[5]={};
void setup() {
// put your setup code here, to run once:
randomSeed(analogRead(A0));
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
int static maks=0;
if(m==LOW){
for(int x=0 ; x<5; x++){
int stevilo=random(1,11); // 1..10
seznam[x]=stevilo;
if (maks<stevilo) maks=stevilo;
Serial.println(seznam[x]);
delay(500);
}
Serial.println("_____________________");
Serial.println(maks);
}
m=HIGH;
if(m1==LOW){
Serial.println("_____________________");
for(int x=4; x>=0; x--){
Serial.println(seznam[x]);
}
m1=HIGH;
}
}