Go Down

Topic: Arduino ISP: LED_PMODE, LED_ERR, LED_HB in setup (Read 620 times) previous topic - next topic

Coding Badly

Arduino ISP setup from 0022...

Code: [Select]
void setup() {
 Serial.begin(19200);
 pinMode(7, OUTPUT);
 pulse(7, 2);
 pinMode(8, OUTPUT);
 pulse(8, 2);
 pinMode(9, OUTPUT);
 pulse(9, 2);
}


Improved version facilitating porting Arduino ISP to other processors...

Code: [Select]
void setup() {
 Serial.begin(19200);
 pinMode(LED_PMODE, OUTPUT);
 pulse(LED_PMODE, 2);
 pinMode(LED_ERR, OUTPUT);
 pulse(LED_ERR, 2);
 pinMode(LED_HB, OUTPUT);
 pulse(LED_HB, 2);
}

Go Up