Devices & Components
Arduino Nano
Arduino Uno Rev3
USB-A to B Cable
USB-A to Mini-USB Cable
Software & Tools
tinkercad
Project description
Code
digital_pin_check.ino
arduino
1int dp, dn; 2 3void setup() { 4 Serial.begin(9600); 5 dn = 13; //total no. of digital pins: 6 7} 8 9void loop() { 10for (dp =0; dp <= dn; dp++) 11 // \\/ : 12 // enter the pin number you want to start from : 13 { 14 pinMode(dp,INPUT); 15 int dps = digitalRead(dp); 16 Serial.print("<"); 17 Serial.print(dp); 18 Serial.print("-"); 19 Serial.print(dps); 20 Serial.print("> "); 21 delay(500); 22 23 } 24 Serial.println(" "); 25} 26
Downloadable files
boad testing
boad testing

boad testing
boad testing

Comments
Only logged in users can leave comments