Configuring Buzzer

The device contains a buzzer, which supports manually configure the buzzer to turn on and off.

  1. Execute the following commands to detect and install gpiod tools.
sudo apt update
sudo apt install gpiod
  1. Execute the following command to turn on and turn off the buzzer.
  • Turn on the buzzer:
gpiofind BUZZER_EN | awk '{print substr($0,9)}' | xargs -i bash -c "gpioset {}=1"

1 indicates the high level.

  • Turn off the buzzer:
gpiofind BUZZER_EN | awk '{print substr($0,9)}' | xargs -i bash -c "gpioset {}=0"

0 indicates the low level.