|
|
@ -30,6 +30,8 @@ var ( |
|
|
|
"write": cmd_write, |
|
|
|
"write": cmd_write, |
|
|
|
"append": cmd_append, |
|
|
|
"append": cmd_append, |
|
|
|
"buzzer": cmd_buzzer, |
|
|
|
"buzzer": cmd_buzzer, |
|
|
|
|
|
|
|
"led": cmd_led, |
|
|
|
|
|
|
|
"reset": cmd_reset, |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -137,7 +139,15 @@ func cmd_append(tbm *TBM, args []string) error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func cmd_buzzer(tbm *TBM, args []string) error { |
|
|
|
func cmd_buzzer(tbm *TBM, args []string) error { |
|
|
|
cmd_generic(tbm, "buzzer", args, nil) |
|
|
|
return cmd_generic(tbm, "buzzer", args, nil) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func cmd_led(tbm *TBM, args []string) error { |
|
|
|
|
|
|
|
return cmd_generic(tbm, "led", args, nil) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func cmd_reset(tbm *TBM, args []string) error { |
|
|
|
|
|
|
|
return cmd_generic(tbm, "reset", args, nil) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|