Simple RPC-controlled port expander.
This sample project use following libs:
- cmake
- arm compiler with c++20 support (tested with gcc-arm-none-eabi-13.2)
From build directory execute commands:
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .
This firmware allow to control PA1
, PA2
and PA3
GPIOs.
To set PA1 send command:
{"method": "setpin", "params" : {"port" : "PA", "pin" : 3}}
To reset PA1 send command:
{"method": "resetpin", "params" : {"port" : "PA", "pin" : 3}}
Also, firmware contains task for toggle PA4
each second.
- Used flash size: 10844 bytes
- Used RAM size: 1672 bytes