beep method

Future<CPCLGenerator> beep(
  1. int duration
)

蜂鸣器控制 BEEP

Implementation

Future<CPCLGenerator> beep(int duration) async {
  if (duration < 0) throw ArgumentError('蜂鸣时长不能为负');
  await addCommand('BEEP $duration');
  return this;
}