https://github.com/m5stack/vameter-firmware
M5-VAMeter firmware
https://github.com/m5stack/vameter-firmware
Last synced: 8 months ago
JSON representation
M5-VAMeter firmware
- Host: GitHub
- URL: https://github.com/m5stack/vameter-firmware
- Owner: m5stack
- License: mit
- Created: 2024-05-24T02:38:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T03:49:00.000Z (about 1 year ago)
- Last Synced: 2025-05-05T03:15:41.754Z (about 1 year ago)
- Language: C
- Size: 690 KB
- Stars: 9
- Watchers: 3
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VAMeter-Firmware
Firmware source code of [VA Meter](https://docs.m5stack.com/en/products/sku/K136).
## Tree
```bash
.
├── app
│ ├── apps # Apps
│ │ ├── app_files
│ │ ├── app_launcher
│ │ ├── app_power_monitor
│ │ ├── app_settings
│ │ ├── app_startup_anim
│ │ ├── app_template
│ │ ├── app_waveform
│ │ └── utils
│ ├── assets # Asset Pool
│ └── hal # HAL defines
└── platforms
├── desktop # Desktop project
└── vameter # IDF project
```
## Build
### Fetch Dependencies
```bash
python ./fetch_repos.py
```
## Desktop Build
#### Tool Chains
```bash
sudo apt install build-essential cmake
```
#### Build
```bash
mkdir build && cd build
```
```bash
cmake .. && make -j8
```
#### Run
```bash
cd desktop && ./app_desktop_build
```
## IDF Build
#### Tool Chains
[ESP-IDF v5.1.3](https://docs.espressif.com/projects/esp-idf/en/v5.1.3/esp32s3/index.html)
#### Build
```bash
cd platforms/vameter
```
```bash
idf.py build
```
#### Flash
```bash
idf.py -p flash -b 1500000
```
##### Flash AssetPool
```bash
parttool.py --port write_partition --partition-name=assetpool --input "path/to/AssetPool-VAMeter.bin"
```
If you run desktop build before, you can found `AssetPool-VAMeter.bin` at
`../../build/desktop/AssetPool-VAMeter.bin`. Or download one from the [release](https://github.com/m5stack/VAMeter-Firmware/releases/latest) page.