18 #include "hardware_defines.h"
22 #define cbi(sfr, bit) (_SFR_UINT8_T(sfr) &= ~_BV(bit))
25 #define sbi(sfr, bit) (_SFR_UINT8_T(sfr) |= _BV(bit))
50 digitalWrite(13, HIGH);
63 digitalWrite(13, LOW);
98 constexpr uint16_t BPMtoMillis(
float bpm){
100 return (uint16_t) (((float) 60.f/bpm)*1000);
void setPin13Low()
Set pin 13 low for testing timing with an oscilloscope.
constexpr uint8_t trailingZerosConst(unsigned long v)
Given a power of 2, work out the number to shift right by to do a divide by the number,...
void setPin13Out()
Set digital pin 13 to output for testing timing with an oscilloscope.
void setPin13High()
Set pin 13 high for testing timing with an oscilloscope.