d329c022b55202cbb193a1e07668e5f5858f685e
基于 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
Description
Languages
C
72.6%
CMake
27.4%