pages
home
compiler
code compiler
processing
Processing code compiler
electronics
notes about electronics
laboratory
laboratory
logggin
login/logout
File
new code
open code
save code
export code
participates in the laboratory (as student)
begin a laboratory (as teacher)
login
Edit
undo
redo
select all
invert selection
deselect
select setup
select loop
After the
row #1
row #2
row #3
row #4
row #5
row #6
row #7
row #8
row #9
row #10
row #11
row #12
row #13
row #14
row #15
row #16
row #17
row #18
row #19
row #20
row #21
row #22
row #23
row #24
row #25
row #26
row #27
row #28
row #29
row #30
row #31
row #32
row #33
row #34
row #35
row #36
row #37
row #38
row #39
row #40
row #41
row #42
row #43
row #44
row #45
row #46
row #47
row #48
row #49
row #50
row #51
row #52
row #53
row #54
row #55
row #56
row #57
row #58
row #59
row #60
row #61
row #62
row #63
row #64
row #65
row #66
row #67
row #68
row #69
row #70
row #71
row #72
row #73
row #74
row #75
row #76
row #77
row #78
row #79
last row 80
move
selected rows.
copy
selected rows.
past
from the clipboard.
Copy in the clipboard
selected rows,
for another code.
delete
selected rows.
Tooling
Add variable
tooling default
"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 bicolor led
Add LED matrix
Add a 7 segments led
actuators
Add a speaker
Add an ultrasonic sensor
Add a motor
Add a servo
Add a relay
Add a IR emitter
Add a display lcd
sensors
Add a button
Add a switch
Add a potentiometer
Add an encoder
Add a photoresistor
Add a temperature sensor
Add a humidity sensor
Add a microphone
Add an ultrasonic sensor
Add a remote control IR
Add a IR receiver
Add a generic actuator
Add a generic sensor
Actions
wait for a time
switch off / switch on
modulate the voltage
drive servo motor
play a note
read from a sensor
detects the status of a button
reads the duration of an impulse
transform a variable
if that happens do this
repeat n times
new function
call a function
Add a note
Add a marker
generate a random number
milliseconds
read from the serial port
write on the serial port
write on a display LCD
View
italian
english
style
clear
style
space
style
classic
larger character
smaller character
pages
electricity
guide
contacts
tooling
row:2
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:3
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:4
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:5
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:6
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:7
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:8
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
row:9
pin0
pin1
pin2
pin3˜
pin4
pin5˜
pin6˜
pin7
pin8
pin9˜
pin10˜
pin11˜
pin12
pin13
pinA0
pinA1
pinA2
pinA3
pinA4
pinA5
engaged pins: 8
declare variables
riga:1
=
integer
floating-point
text
array
main
row:10
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:11
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:12
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:13
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:14
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:15
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:16
SWITCH OFF (0 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:17
store the serial input on variable
...
X
row:18
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:19
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:20
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:21
(close the cycle)
row:22
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:23
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:24
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:25
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:26
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:27
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:28
(close the cycle)
row:29
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:30
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:31
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:32
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:33
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:34
(close the cycle)
row:35
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:36
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:37
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:38
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:39
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:40
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:41
(close the cycle)
row:42
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:43
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:44
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:45
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:46
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:47
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:48
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:49
(close the cycle)
row:50
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:51
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:52
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:53
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:54
(close the cycle)
row:55
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:56
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:57
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:58
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:59
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:60
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:61
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:62
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:63
(close the cycle)
row:64
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:65
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:66
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:67
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:68
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:69
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:70
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:71
(close the cycle)
row:72
IF HAPPENS THAT
...
X
is greater than
is less than
is equal to
is not equal to
an even if/or if...
row:73
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:74
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:75
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:76
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:77
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:78
SWITCH ON (5 Volt)
the
_segA
_segB
_segC
_segD
_segE
_segF
_segG
_punto
row:79
(close the cycle)
row:80
WAIT
milliseconds
actions
new function
call a function
messaggi
...
file
di
clear
space
classic
select all
invert selection
deselect
select setup
select loop
After the
1th row
2th row
3th row
4th row
5th row
6th row
7th row
8th row
9th row
10th row
11th row
12th row
13th row
14th row
15th row
16th row
17th row
18th row
19th row
20th row
21th row
22th row
23th row
24th row
25th row
26th row
27th row
28th row
29th row
30th row
31th row
32th row
33th row
34th row
35th row
36th row
37th row
38th row
39th row
40th row
41th row
42th row
43th row
44th row
45th row
46th row
47th row
48th row
49th row
50th row
51th row
52th row
53th row
54th row
55th row
56th row
57th row
58th row
59th row
60th row
61th row
62th row
63th row
64th row
65th row
66th row
67th row
68th row
69th row
70th row
71th row
72th row
73th row
74th row
75th row
76th row
77th row
78th row
79th row
last row
move
the selected rows.
copy
the selected rows.
past
from the clipboard.
copy in the clipboard
the selected rows.
erase
the selected rows.
components
actions
wait
switch off / switch on
modulate the voltage
drive servo motor
play a note
read from a sensor
detects the status of a button
reads the duration of an impulse
transform a variable
if that happens do this
repeat n times
new function
call a function
Add a note
Add a marker
generate a random number
milliseconds
reads from the serial port
write on the serial port
write on a display LCD
//programma: 7segmenti //******* pin ******** //******* declare ******** int X=0;//declares the variable const int pin_segA=1;//pin of _segA const int pin_segB=2;//pin of _segB const int pin_segC=3;//pin of _segC const int pin_segD=4;//pin of _segD const int pin_segE=5;//pin of _segE const int pin_segF=6;//pin of _segF const int pin_segG=7;//pin of _segG const int pin_punto=0;//pin of _punto //********** setup ********** void setup(){ Serial.begin(9600); // Initialize the serial port pinMode(pin_segA,OUTPUT); pinMode(pin_segB,OUTPUT); pinMode(pin_segC,OUTPUT); pinMode(pin_segD,OUTPUT); pinMode(pin_segE,OUTPUT); pinMode(pin_segF,OUTPUT); pinMode(pin_segG,OUTPUT); pinMode(pin_punto,OUTPUT); } //********** loop ********** void loop() { digitalWrite(pin_segA,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segE,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segF,LOW); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,LOW); // HIGH/LOW is the voltage 5V/0V) X=Serial.read(); if(X==1){ digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==3){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==4){ digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==5){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==6){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segE,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==7){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==8){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segE,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==9){ digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segG,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) } if(X==0){ digitalWrite(pin_segA,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segB,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segC,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segD,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segE,HIGH); // HIGH/LOW is the voltage 5V/0V) digitalWrite(pin_segF,HIGH); // HIGH/LOW is the voltage 5V/0V) } delay(500);//attendi };//end loop //powered by "Arduinomio" (C) //www.mastrohora.it
copy/past in Arduino
logout