Servomatic.git
13 months agoChange Makefile to better track what to do
Lukáš Jiřiště [Wed, 23 Oct 2024 09:13:40 +0000 (11:13 +0200)]
Change Makefile to better track what to do

Normally the object files and executable are used for tracking but
arduino-cli does not generate any files inside the working directory.
The changes use dotfiles .compile and .upload to keep track of what
needs to be done.
In addition to the dotfiles compile and upload rules were added, that
force the action.

13 months agoSwitch from double to float
Lukáš Jiřiště [Wed, 23 Oct 2024 08:53:24 +0000 (10:53 +0200)]
Switch from double to float

Float has 24bit significant so it has plenty of precision for the 10bit
AD conversion and should take less space.

13 months agoImplement PressureSensor class and use it in main
Lukáš Jiřiště [Wed, 23 Oct 2024 08:43:22 +0000 (10:43 +0200)]
Implement PressureSensor class and use it in main

13 months agoFix Makefile dependencies
Lukáš Jiřiště [Wed, 23 Oct 2024 08:41:47 +0000 (10:41 +0200)]
Fix Makefile dependencies

13 months agoAdd a small test program for the UNO
Lukáš Jiřiště [Tue, 22 Oct 2024 08:28:33 +0000 (10:28 +0200)]
Add a small test program for the UNO

This program makes a LED (pin 4) switch state whenever pin 7 is
connected to ground (through button).

13 months agoAdd Makefile for building and uploading to UNO
Lukáš Jiřiště [Tue, 22 Oct 2024 08:27:16 +0000 (10:27 +0200)]
Add Makefile for building and uploading to UNO

The Makefile uses arduino-cli.