This repository contains class implementations that enable the easy use of frequently used hardware pins/communication protocols
The following classes have been implemented (The last 2 being thread safe implementations):
- LegacyGpio (using
sysfs
) - I2C
- PWM
- Serial
- SafeLegacyGpio (using
sysfs
) - SafeI2C
General frequently used functions added in utils.cpp, including a wrapper function for calling system functions.
Please make sure you have the permissions to use the pins when using these scripts. If you are using Ubuntu run:
sudo usermod -a -G dialout $USER
git clone https://github.com/vss2sn/sensor_communication_base_scripts.git
cd sensor_communication_base_scripts
mkdir -p build && cd build
cmake ..
make -j4
./communicate
- Add examples
- Add documentation
- Add tests and their counterparts (Arduino)
- New Gpio wrapper class