示例#1
0
void send_chord(void)
{
  for(uint8_t i = 0; i < 4; i++)
  {
    if(chord[i])
      virtser_send(chord[i]);
  }
  virtser_send(0);
}
示例#2
0
void send_steno_state(uint8_t size, bool send_empty) {
  for (uint8_t i = 0; i < size; ++i) {
    if (state[i] || send_empty) {
      virtser_send(state[i]);
    }
  }
  steno_clear_state();
}
示例#3
0
bool send_state_bolt(void) {
  send_steno_state(BOLT_STATE_SIZE, false);
  virtser_send(0); // terminating byte
  return false;
}