Assertion: interrupt's isr | /r/HasProperty | read
Facets:
value: according to datasheet
type: OTHER
Source sentences:
text: 17 18 void setup ( ) { pinMode ( ledPin , OUTPUT ) ; pinMode ( 8 , INPUT ) ; Serial . begin ( 9600 ) ; TIMSK1 = ( TIMSK1 & B11011111) | 0x20; //enable timer capture interrupt TCCR1B = ( TCCR1B & B10111000) | 0x41; //falling edge, no prescale } void loop ( ) { digitalWrite ( ledPin , state ) ; } ISR ( TIMER1_CAPT_vect ) { int t = ICR1 ; //must be read first, according to datasheet Serial .