pages
home
compileur
compilatore di programmi per Arduino
elettricity
appunti di elettronica/elettrotecnica
laboratoy
laboratorio
logggin
user
Processing
Processing
Theremino
Theremino
File
new
open
save
export
pannello di controllo
laboratory
new laboratory
old laboratories
login
Modify
undo
redo
select all
invert selection
deselect all
select settings
select loop
after
riga 1
riga 2
riga 3
riga 4
riga 5
riga 6
riga 7
riga 8
riga 9
riga 10
riga 11
riga 12
riga 13
riga 14
riga 15
riga 16
riga 17
riga 18
riga 19
riga 20
riga 21
riga 22
riga 23
riga 24
riga 25
riga 26
riga 27
riga 28
riga 29
riga 30
riga 31
riga 32
riga 33
riga 34
riga 35
riga 36
riga 37
riga 38
riga 39
riga 40
riga 41
riga 42
riga 43
riga 44
riga 45
riga 46
riga 47
riga 48
riga 49
riga 50
riga 51
l'ultima riga
move
seleted rows.
copy
seleted rows.
past
from clipboard.
copy clipboard
seleted rows,
to use in another code.
trush
seleted rows.
store
Add a variable
specific settings
"Arduino Esplora"
"Arduino Robot"
Danger Shield - Sparkfun
CodeShield
LED
Add a green led
Add a yellow led
Add a red led
Add a blue led
Add a RGB led
Add a bicolor led
Add a matrix of leds
Add a 7 segments led
actuators
Add a speaker
Add a motor with driver
Add a motor
Add a servo
Add a relè
Add a IR
Add a display lcd
sensors
Add a button
Add an interruptor
Add a potenziometer
Add a encoder
Add a photoresistor
Add a sensor for temperature
Add a sensor for humidity
Add a microphone
Add a sensor for ultrasounds
Add a IR remote control
Add a IR sensor
Add a un generic actuator
Add a un generic sensor
actions
wait
turn on / turn off
modulate
rotate a servo
play
read from a sensor
button
impuls
variable
if...then...
repeat n times
create a function
call a function
Add a comment
Add a flag
random number
timer
milliseconds
read from serial port
write on serial port
write on display LCD
View
italian
english
stile
clear
stile
space
stile
classic
bigger font
smaller font
pages
elettricity
help
contacts
messagges
stile modificato
file
file:
dado_da_gioco
di
note:
style -->
clear
classic
space
language -->
store
actions
modify
select all
invert selection
deselect all
select setting
select loop
copy on clipboard
selected rows.
trush
selected rows.
after
riga 1
riga 2
riga 3
riga 4
riga 5
riga 6
riga 7
riga 8
riga 9
riga 10
riga 11
riga 12
riga 13
riga 14
riga 15
riga 16
riga 17
riga 18
riga 19
riga 20
riga 21
riga 22
riga 23
riga 24
riga 25
riga 26
riga 27
riga 28
riga 29
riga 30
riga 31
riga 32
riga 33
riga 34
riga 35
riga 36
riga 37
riga 38
riga 39
riga 40
riga 41
riga 42
riga 43
riga 44
riga 45
riga 46
riga 47
riga 48
riga 49
riga 50
riga 51
riga 52
ultima riga
move
selected rows.
copy
selected rows.
past
on clipboard.
handbook
piedinature
collegamenti
resistenze
sketches notevoli
circuiti notevoli
i pin di Arduino
error messages
tabelle varie
tabella colori
tavola dei simboli
store
riga:0
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:1
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:2
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:3
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:4
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:5
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
riga:6
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
pin impegnati: 7
variables
riga:8
=
array
loop
:9
la variabile
...
X
e
:10
...
X
>
<
=
><
:11
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:13
...
X
>
<
=
><
:14
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:15
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:17
...
X
>
<
=
><
:18
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:19
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:20
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:22
...
X
>
<
=
><
:23
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:24
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:25
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:26
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:28
...
X
>
<
=
><
:29
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:30
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:31
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:32
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:33
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:35
...
X
>
<
=
><
:36
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:37
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:38
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:39
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:40
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:41
(5 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:43
:44
:45
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:46
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:47
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:48
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:49
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:50
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:51
(0 Volt)
il
...
_ledblu7
_ledblu6
_ledblu5
_ledblu4
_ledblu3
_ledblu2
_ledblu1
:52
azioni
//programma: dado_da_gioco //******* pin ******** const int pin_ledblu7=7;//pin del _ledblu7 const int pin_ledblu6=6;//pin del _ledblu6 const int pin_ledblu5=5;//pin del _ledblu5 const int pin_ledblu4=4;//pin del _ledblu4 const int pin_ledblu3=3;//pin del _ledblu3 const int pin_ledblu2=2;//pin del _ledblu2 const int pin_ledblu1=1;//pin del _ledblu1 //******* dichiarazioni ******** int X=0;// //********** setup ********** void setup(){ pinMode(pin_ledblu7,OUTPUT);// pinMode(pin_ledblu6,OUTPUT);// pinMode(pin_ledblu5,OUTPUT);// pinMode(pin_ledblu4,OUTPUT);// pinMode(pin_ledblu3,OUTPUT);// pinMode(pin_ledblu2,OUTPUT);// pinMode(pin_ledblu1,OUTPUT);// } //********** ciclo ********** void loop() { X=random(1,6); if(X==1){ digitalWrite(pin_ledblu7,HIGH); // } if(X==2){ digitalWrite(pin_ledblu1,HIGH); // digitalWrite(pin_ledblu6,HIGH); // } if(X==3){ digitalWrite(pin_ledblu1,HIGH); // digitalWrite(pin_ledblu7,HIGH); // digitalWrite(pin_ledblu6,HIGH); // } if(X==4){ digitalWrite(pin_ledblu1,HIGH); // digitalWrite(pin_ledblu4,HIGH); // digitalWrite(pin_ledblu3,HIGH); // digitalWrite(pin_ledblu6,HIGH); // } if(X==5){ digitalWrite(pin_ledblu1,HIGH); // digitalWrite(pin_ledblu4,HIGH); // digitalWrite(pin_ledblu3,HIGH); // digitalWrite(pin_ledblu6,HIGH); // digitalWrite(pin_ledblu7,HIGH); // } if(X==6){ digitalWrite(pin_ledblu1,HIGH); // digitalWrite(pin_ledblu2,HIGH); // digitalWrite(pin_ledblu3,HIGH); // digitalWrite(pin_ledblu4,HIGH); // digitalWrite(pin_ledblu5,HIGH); // digitalWrite(pin_ledblu6,HIGH); // } delay(5000);// //******************************** digitalWrite(pin_ledblu1,LOW); // digitalWrite(pin_ledblu2,LOW); // digitalWrite(pin_ledblu3,LOW); // digitalWrite(pin_ledblu4,LOW); // digitalWrite(pin_ledblu5,LOW); // digitalWrite(pin_ledblu6,LOW); // digitalWrite(pin_ledblu7,LOW); // delay(3000);// };//fine del loop //codice creato con "Arduinomio" (C) //www.mastrohora.it
copy/past on Arduino IDE (here Ctrl+C) (on IDE Ctrl+A+V+U)
logout