Files
IM1253B/README.md
2024-03-12 09:46:52 +08:00

26 lines
781 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 基于 Raspberry Pico / Pico W 的电能计量模块IM1253B
* 可以计算电压、电流、功率、电能、功率因数、二氧化碳、温度、频率
## Build
```
# 使用WSL Debian GNU/Linux 12 (bookworm) 构建
# 确保Pico-SDK环境变量
export PICO_SDK_PATH=/mnt/c/Users/niuyuling/Desktop/raspberry-pico/SDK/pico-sdk
export PICO_EXTRAS_PATH=/mnt/c/Users/niuyuling/Desktop/raspberry-pico/SDK/pico-extras
apt install cmake gcc-arm-none-eabi gcc g++
apt install gdb-multiarch automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev
git clone https://git.aixiao.me/aixiao/IM1253B.git
cd IM1253B
mkdir -p build
cd build
cmake ..
#cmake -DPICO_BOARD=pico_w ..
make
```