Forking mBot factory firmware to extend its capabilities
Makes use of:
- My fork (https://github.com/tiggi78/Makeblock-Libraries) of MakeBlock Libraries (https://github.com/Makeblock-official/Makeblock-Libraries)
- YetAnotherArduinoPcIntLibrary (https://github.com/paulo-raca/YetAnotherArduinoPcIntLibrary/)
- Arduino-Makefile (https://github.com/sudar/Arduino-Makefile)
Starting from Makeblock-Libraries/examples/Firmware_For_mBlock/mbot_factory_firmware.ino
- Code cleanup and
- Ultrasonic now uses PCINT to measure pulse and can be triggered witouth waiting the measure
- Added simple static task scheduler to trigger simple actions on specific time interval (ultrasonic reading)
- Install arduino-mk (it will install required dependancies):
apt install arduino-mk
- Clone following git repo in the same folder:
- YetAnotherArduinoPcIntLibrary:
git clone https://github.com/paulo-raca/YetAnotherArduinoPcIntLibrary.git
- My fork of Makeblock Libraries:
git clone https://github.com/tiggi78/Makeblock-Libraries
- This repo:
git clone https://github.com/tiggi78/mBotEnhanced
- YetAnotherArduinoPcIntLibrary:
- Install astyle:
apt install astyle
- Go to
mbotEnhanced
folder and runmake
- Run
make help
to know all the comands available