cbd972a8e4749e2240489712975354eee2e842aa
Board-dat/NWI/NWI1126-DAT/NWI1126-DAT.md
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | |
| 5 | 5 | ## tech |
| 6 | 6 | |
| 7 | -- [[ESP32-C3-dat]] - [[ESP32-C3-SDK-dat]] |
|
| 7 | +- [[ESP32-C3-dat]] - [[ESP32-C3-SDK-dat]] - [[ESP32-SDK-dat]] |
|
| 8 | 8 | |
| 9 | 9 | - [[dcdc-down-dat]] - [[mosfet-dat]] - [[mosfet-dimming-dat]] |
| 10 | 10 | |
| ... | ... | @@ -35,6 +35,13 @@ on board [[ESP32-C3-WROOM-02-dat]] version == 4MB - [[ESP-debug-log-dat]] |
| 35 | 35 | |
| 36 | 36 |  |
| 37 | 37 | |
| 38 | +PWM driving |
|
| 39 | + |
|
| 40 | + const int ch = ledcAttach(pin, LEDC_BASE_FREQ, LEDC_TIMER_BIT); |
|
| 41 | + ... |
|
| 42 | + pwmWritePin(G_LED, 0); |
|
| 43 | + ... |
|
| 44 | + ledcWrite(pin, actualDuty); // core 3.x: pin-based write |
|
| 38 | 45 | |
| 39 | 46 | |
| 40 | 47 | |
| ... | ... | @@ -173,12 +180,13 @@ Default firmware, right bottom LED blink, drive common 4ch RGBW LED strip to bli |
| 173 | 180 | - [[ESPhome-dat]] |
| 174 | 181 | |
| 175 | 182 | |
| 176 | -flash command: |
|
| 177 | - |
|
| 178 | - "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM19" --baud 921600 --before default-reset --after hard-reset write-flash -e -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bootloader.bin" 0x8000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bin" |
|
| 183 | +- [[esptool-dat]] |
|
| 179 | 184 | |
| 185 | +4MB flash - 2MB APP x2, basic-3.ino.partitions.bin file changed |
|
| 180 | 186 | |
| 187 | + "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM19" --baud 921600 --before default-reset --after hard-reset write-flash -e -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "basic-3.ino.bootloader.bin" 0x8000 "basic-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "basic-3.ino.bin" |
|
| 181 | 188 | |
| 189 | +- [[basic-3.ino.partitions.bin]] - [[basic-3.ino.bootloader.bin]] - [[basic-3.ino.bin]] |
|
| 182 | 190 | |
| 183 | 191 | ## ref |
| 184 | 192 |
Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.bin
| ... | ... | Binary files /dev/null and b/Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.bin differ |
Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.bootloader.bin
| ... | ... | Binary files /dev/null and b/Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.bootloader.bin differ |
Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.partitions.bin
| ... | ... | Binary files /dev/null and b/Board-dat/NWI/NWI1126-DAT/NWI1126-flash-dat/basic-3.ino.partitions.bin differ |
SDK-dat/ESP-SDK-dat/ESP32-SDK-dat/ESP32-SDK-dat.md
| ... | ... | @@ -20,7 +20,11 @@ |
| 20 | 20 | |
| 21 | 21 | - [[micropython-dat]] - [[circuitpython-dat]] |
| 22 | 22 | |
| 23 | +- [[arduino-dat]] |
|
| 23 | 24 | |
| 25 | +## arduino |
|
| 26 | + |
|
| 27 | +- API == Arduino-ESP32 3.x |
|
| 24 | 28 | |
| 25 | 29 | |
| 26 | 30 | # ESP32 Examples |
| ... | ... | @@ -94,4 +98,6 @@ |
| 94 | 98 | |
| 95 | 99 | - [[ESP32-S3-SDK-dat]] - [[ESP32-S3-dat]] |
| 96 | 100 | |
| 97 | -- [[ESP-SDK-dat]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[ESP-SDK-dat]] |
|
| 1 | + |
|
| 2 | +- [[AI]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/ESP-SDK-dat/esptool-dat/esptool-dat.md
| ... | ... | @@ -21,11 +21,11 @@ or python2 == pip install esptool |
| 21 | 21 | |
| 22 | 22 | get the raw command like [[NWI1254-dat]] |
| 23 | 23 | |
| 24 | - "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM15" --baud 921600 --before default-reset --after hard-reset write-flash -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "C:\Users\Administrator\AppData\Local\arduino\sketches\45267CD3CF422CD163E590AF8B86E223/NWI1254-3.ino.bootloader.bin" 0x8000 "C:\Users\Administrator\AppData\Local\arduino\sketches\45267CD3CF422CD163E590AF8B86E223/NWI1254-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Administrator\AppData\Local\arduino\sketches\45267CD3CF422CD163E590AF8B86E223/NWI1254-3.ino.bin" |
|
| 24 | + "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM19" --baud 921600 --before default-reset --after hard-reset write-flash -e -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bootloader.bin" 0x8000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bin" |
|
| 25 | 25 | |
| 26 | 26 | find out the temperory folder like, call it sub folder |
| 27 | 27 | |
| 28 | - C:\Users\Administrator\AppData\Local\arduino\sketches\45267CD3CF422CD163E590AF8B86E223 |
|
| 28 | + C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338 |
|
| 29 | 29 | |
| 30 | 30 | copy and replace |
| 31 | 31 | |
| ... | ... | @@ -35,12 +35,16 @@ copy and replace |
| 35 | 35 | |
| 36 | 36 | now the full commands to |
| 37 | 37 | |
| 38 | - "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM15" --baud 921600 --before default-reset --after hard-reset write-flash -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 ".\NWI1254-3.ino.bootloader.bin" 0x8000 "C:\Users\Administrator\AppData\Local\arduino\sketches\45267CD3CF422CD163E590AF8B86E223/NWI1254-3.ino.partitions.bin" 0xe000 ".\boot_app0.bin" 0x10000 ".\NWI1254-3.ino.bin" |
|
| 38 | + "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM19" --baud 921600 --before default-reset --after hard-reset write-flash -e -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "basic-3.ino.bootloader.bin" 0x8000 "basic-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "basic-3.ino.bin" |
|
| 39 | 39 | |
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | |
| 43 | +## logs |
|
| 43 | 44 | |
| 45 | +default partitions flash command for [[esp32-C3-SDK-dat]]: |
|
| 46 | + |
|
| 47 | + "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\5.1.0/esptool.exe" --chip esp32c3 --port "COM19" --baud 921600 --before default-reset --after hard-reset write-flash -e -z --flash-mode keep --flash-freq keep --flash-size keep 0x0 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bootloader.bin" 0x8000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.partitions.bin" 0xe000 "C:\Users\Administrator\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.1/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Administrator\AppData\Local\arduino\sketches\1AE3EC11A265D1FC6F8FC3626AA4D338/basic-3.ino.bin" |
|
| 44 | 48 | |
| 45 | 49 | ## command errors |
| 46 | 50 |