From 1762c56956bafd6fc0636516b494dfa935ff8aec Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Wed, 25 Dec 2024 00:34:42 +0100 Subject: space_light: first version TODO: pwm initialization is currently best guess could be wrong active low|high TODO: implement pairing TODO: implement timer TODO: use the button for something TODO: implement a better client --- README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 5cde2c6..fe71512 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,57 @@ Build the BLE example: make ``` +# Dump complete flash and get config + +```bash +pipx install "bk7231tools[cli]" +bk7231tools read_flash -d /dev/ttyUSB0 -s 0 -l 0x200000 dumpv2.bin +bktools dissect_dump -e -O dump_extract_dirv2 dumpv2.bin +``` + +interesting output is this config + +```json +{ + "Jsonver": "1.1.0", + "b_lv": 0, + "b_pin": 26, + "brightmax": 100, + "brightmin": 10, + "c_lv": 0, + "c_pin": 8, + "cmod": "rgbcw", + "colormax": 100, + "colormin": 10, + "ctrl_lv": 0, + "ctrl_pin": 7, + "cwmaxp": 100, + "cwtype": 0, + "defbright": 80, + "defcolor": "b", + "deftemp": 100, + "dmod": 0, + "g_lv": 0, + "g_pin": 24, + "module": "WB3S", + "onoffmode": 1, + "pmemory": 1, + "pwmhz": 1000, + "r_lv": 0, + "r_pin": 9, + "rstbr": 80, + "rstcor": "b", + "rstmode": 0, + "rstnum": 3, + "rsttemp": 100, + "title20": 0, + "w_lv": 1, + "w_pin": 6, + "wfcfg": "spcl" +} +``` + + # Flashing I followed the original authors and used the outdated "hid_download_py". -- cgit v1.2.3