void set_mode(enum Mode mode) { write_bits_msb( _BV(2), (uint8_t)mode ); }
void send_command( enum Command command ) { write_bits_msb( _BV(7), (uint8_t)command ); write_bits_msb( _BV(0), 0 ); }
void HT1632::set_mode(Mode mode) { deselect(); select(); write_bits_msb( _BV(2), (uint8_t)mode ); this->mode = mode; }
void send_address( uint8_t addr ) { write_bits_msb( _BV(6), addr ); }
void HT1632::send_command( Command command ) { write_bits_msb( _BV(7), (uint8_t)command ); write_bits_msb( _BV(0), 0 ); }