Pages: [1]   Go Down
Author Topic: pins dispo pour pull-up sur Uno ?  (Read 225 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 72
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

J'ai besoin de 7 contacts que je souhaite mettre en pull-up sur une UNO. Est-ce déjà possible et quels pins puis-je utiliser ?

Merci.
Logged

France
Offline Offline
Faraday Member
**
Karma: 52
Posts: 5341
Arduino Hacker
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Bonjour,

N'importe quelle broche de la carte arduino UNO peut être mise en pull-up avec :
Code:
pinMode(x, INPUT_PULLUP);
Logged

Des news, des tuto et plein de bonne chose sur http://skyduino.wordpress.com !

Offline Offline
Jr. Member
**
Karma: 0
Posts: 72
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Super, merci.
Logged

Paris
Offline Offline
Full Member
***
Karma: 1
Posts: 175
Beyond the possible...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Il y aussi ce trick  :

Code:

pinMode(x, INPUT);
digitalWrite(x, HIGH);
Logged

The Mind is like a parachute it works best when opened.

Pages: [1]   Go Up
Jump to: