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