Sanguino's EXT pins doesn't work [SOLVED] January 25, 2012 12:17PM |
Registered: 12 years ago Posts: 25 |
Re: Sanguino's EXT pins doesn't work January 27, 2012 05:42AM |
Registered: 12 years ago Posts: 25 |
Re: Sanguino's EXT pins doesn't work January 30, 2012 02:00PM |
Registered: 12 years ago Posts: 25 |
Re: Sanguino's EXT pins doesn't work February 03, 2012 11:59AM |
Registered: 12 years ago Posts: 25 |
#include (...) #ifdef PHOTOGRAPH_PIN #if (PHOTOGRAPH_PIN > -1) SET_OUTPUT(PHOTOGRAPH_PIN); WRITE(PHOTOGRAPH_PIN, LOW); #endif #endif (...) case 240: // M240 // Triggers a camera by emulating a Canon RC-1 Remote // Data from: [www.doc-diy.net] // modified to use wired remote #ifdef PHOTOGRAPH_PIN #if (PHOTOGRAPH_PIN > -1) #define NUM_PULSES 1 #define PULSE_LENGTH 800 for(int i=0; i < NUM_PULSES; i++) { Serial.println("Doh !?"); WRITE(PHOTOGRAPH_PIN, HIGH); _delay_ms(PULSE_LENGTH); WRITE(PHOTOGRAPH_PIN, LOW); _delay_ms(PULSE_LENGTH); } #endif #endif break;
Re: Sanguino's EXT pins doesn't work [SOLVED] February 03, 2012 01:22PM |
Registered: 12 years ago Posts: 25 |