|Martin Unzner ce10c08f11||1 week ago|
|Arduino-CMake-Toolchain@e745a9bed3||1 week ago|
|lib||1 week ago|
|test||1 week ago|
|.gitignore||1 week ago|
|.gitmodules||1 week ago|
|CMakeLists.txt||1 week ago|
|LICENSE||1 week ago|
|README.md||1 week ago|
|shifting_alternator.cpp||1 week ago|
Small Arduino project for controlling relay switches in an alternating manner using two shift registers
Instructions are similar to that of Arduino-CMake-Toolchain.
First, install the official Arduino IDE from https://arduino.cc. Make sure that everything works by starting the IDE once and uploading some example to your Arduino.
Next, create a custom CMake configuration for Arduino within this project folder:
mkdir build cd build cmake -DCMAKE_TOOLCHAIN_FILE=../Arduino-CMake-Toolchain/Arduino-toolchain.cmake -G "Unix Makefiles" ..
Then, follow the instructions on screen to customize your board. Manual editing of BoardOptions.cmake may be required even if you use the CMake GUI to set up everything. Google and patience are your friends. :)
Once everything works, you can simply build the project:
Then, upload it to your board to test it out:
make SERIAL_PORT=/dev/ttyUSB0 upload-shifting_alternator