Open main menu

Changes

X728-Software

712 bytes added, 01:09, 23 July 2023
no edit summary
{{GD Template Impl}}
<big>Although this installation tutorial is still available, but we strongly recommend that you use [[X728-script]] new tutorial, and we no longer maintain this page.</big>
 
<hr/>
 
The following test is base on [https://www.raspberrypi.com/software/operating-systems/ 2022-01-28-raspios-bullseye-armhf.zip]
4. Install script&reboot:
Firstly please select your x728 version, please use x728-v2.1.sh for x728 v2.1 and v2.2and '''v2.3'''
sudo bash x728-v2.1.sh
#New add buzzer support
But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use crontab system command to achieve it. Refer to [[How to add crontab job]] or refer to the following:
  pi@raspberrypi ~ $ `sudo crontab -e`[[File:Crontab-step1.png]]
Choose "`1`" then press Enter
Add a line at the end of the file that reads like this:
@reboot python /home/pi/x728bat.py
[[File:X728-crontab.png|800px]]
`@reboot python /home/pi/x728batSave and exit. In nano, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.py`
7. Power off command on Raspbian from software
[[File:X728-pld-2.jpg]]
 
PS:
 
1. X728pld.py is '''ONLY''' a sample code file, you can modify it according to your own needs
 
2. The buzzer is controlled by software. It is found that some customers do not know how to turn off the buzzer's warning sound. Here is a reminder.
 
[[File:X728-buzzer.png|800px]]
9. '''Testing Auto shutdown when AC power loss''' or power adapter failure
References:
*[https://www.instructables.com/Raspberry-Pi-Tutorial-How-to-Use-a-Buzzer/ Raspberry Pi Tutorial: How to Use a Buzzer]
*[https://github.com/arbowl/cyberdeck-battery-indicator/ Battery Indicator Script Share by Drew]
Return to [[X728]]