Difference between revisions of "CSC270 Final Exam 2012"
Line 68: | Line 68: | ||
// initialize the digital pin as an output. | // initialize the digital pin as an output. | ||
// Pin 13 has an LED connected on most Arduino boards: | // Pin 13 has an LED connected on most Arduino boards: | ||
− | pinMode( 13, OUTPUT); | + | pinMode( 13, OUTPUT); // on-board LED always connected to Pin 13 |
− | pinMode( ACK, INPUT ); // | + | pinMode( ACK, INPUT ); // the ACK signal sent by your hardware |
− | pinMode( STB, OUTPUT); // strobe | + | pinMode( STB, OUTPUT); // strobe signal sent to your hardware |
pinMode( D0, OUTPUT ); | pinMode( D0, OUTPUT ); | ||
pinMode( D1, OUTPUT ); | pinMode( D1, OUTPUT ); |