14 #define cbi(sfr, bit) (_SFR_UINT8_T(sfr) &= ~_BV(bit))
17 #define sbi(sfr, bit) (_SFR_UINT8_T(sfr) |= _BV(bit))
49 unsigned int BPMtoMillis(
float bpm);
void setPin13Out()
Set digital pin 13 to output for testing timing with an oscilloscope.
long trailingZeros(unsigned long v)
Given a power of 2, work out the number to shift right by to do a divide by the number, or shift left to multiply.
void setPin13High()
Set pin 13 high for testing timing with an oscilloscope.
void setPin13Low()
Set pin 13 low for testing timing with an oscilloscope.