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