From eaff798e583373239da34a0cac6814b47727f8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=B2=E5=B1=8E=E5=B0=86=E5=86=9B?= <37292630+wlmh110@users.noreply.github.com> Date: Fri, 6 May 2022 13:06:31 +0800 Subject: [PATCH] Updated PiSugar 3 Series (markdown) --- PiSugar-3-Series.md | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/PiSugar-3-Series.md b/PiSugar-3-Series.md index 463a203..4394e2f 100644 --- a/PiSugar-3-Series.md +++ b/PiSugar-3-Series.md @@ -124,6 +124,30 @@ Click and hold the power button to turn on/off. This feature can be turn off in PiSugar 3 has many advanced power functions that can be set up, which are described below. Some functions can be operated on WebUI, indicating that this function does not need to be manually set up by I2C, only in WebUI. At the same time, the WebUI interface can be set up directly through the command line. The function set through the WebUI will retain the settings in the Raspberry Pi system and will not be set to the default value after restart or battery reset. + +1. Write Protection + + **Register address:** + + Write protection: 0x0B + + **Register operation:** + + can be read or written + + **Operating instructions:** + + When reading, 1 indicates that the PiSugar registers can be written, 0 indicates that the registers cannot be written. + + Writing 0x29 to this register will make other registers writable, and writing any other value (such as 0xff) will make other register unwritable + + The following functions are not affected by write protection + Reading data. + + Feed watchdog + + TAP Button State Cleanup + 1. External power supply detection **Register address:** @@ -503,19 +527,6 @@ WebUI supports this function. WebUI can read the battery power percentage -1. RTC function - - **Register address:** - - write protection: 0x30, data address: 0x31-0x37 - - **Register operation:** - - can be read or written - - **Operating instructions:** - - RTC has a write protection function in order to prevent data fluctuations caused by misoperation or system instability. 1. Timing boot function