Pages: [1]   Go Down
Author Topic: Fonction Setup()  (Read 446 times)
0 Members and 1 Guest are viewing this topic.
Dammarie-Les-Lys _ FRANCE
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Bonjour,
Il est marqué sur le site la chose suivante (http://www.arduino.cc/en/Reference/Setup):
Quote
setup()

The setup() function is called when your program starts. Use it to initialize your variables, pin modes, start using libraries, etc. The setup function will only run once, after each powerup or reset of the Arduino board.

Or, il suffit de déconnecter puis de reconnecter un terminal windows pour que la fonction setup() soit relancé...

Comment cela se fait-il ?

Merci de votre aide.
Logged

Grenoble/Lyon - France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 363
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

" after each powerup or reset "
Logged


Dammarie-Les-Lys _ FRANCE
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
" after each powerup or reset "
et ....

Le fait de couper le terminal déclencherait un reset ?
Logged

New Jersey
Offline Offline
Full Member
***
Karma: 0
Posts: 193
Ard at work
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yep. :-)

Je ne serais pas te dire pourquoi... peut-etre afin de s'assurer d'avoir la session entiere chaque fois que tu lance la session terminal?
Logged

----------
Mathieu

Pages: [1]   Go Up
Jump to: