void Cappdata::play_record_enabled(bool enabled) { if (!enabled && m_opened_a_file && m_bdonotappendtoopen) return ; if (enabled) { set_practice_card(false); send_start_stop(ac_record); } else { send_start_stop(ac_stop); } set_record_card(enabled); }
void ir_send_message(uint16_t message) { PORTB |= _BV(PB0); // debug led on send_start_stop(); uint8_t i = 16; do { i--; if (message & (1 << i)) { send_high(); } else { send_low(); } } while(i > 0); send_start_stop(); PORTB &= ~_BV(PB0); // debug led off }