Go to file
2019-07-30 11:37:38 +02:00
.vscode distance_app: Measure continuously until 'Ctrl+c' is pressed. 2019-07-29 16:51:37 +02:00
src distance_app: Measure continuously until 'Ctrl+c' is pressed. 2019-07-29 16:51:37 +02:00
test Initial commit 2019-07-25 14:20:30 +01:00
.gitignore Initial commit 2019-07-25 14:20:30 +01:00
Makefile Add readme. 2019-07-30 11:37:38 +02:00
README.md Add readme. 2019-07-30 11:37:38 +02:00

Voltage app

Application to read out voltages from ads1115 adc-i2c ad converter.

Dependencies

Installation

make install

Installs voltage_app into the directory $(PREFIX)/bin/. The default value for PREFIX is: PREFIX=/usr. To use another location for installation changing the value of the PREFIX variable is needed. E.g.:

PREFIX=/usr/local/ make install

Uninstallation

make uninstall

Removes the files installed with the install make target.

NOTE: If PREFIX variable was changed during installation process the same value needs to be set for uninstallation. E.g.:

PREFIX=/usr/local/ make uninstall

Example

$ distance_app
Conversation: 3.196V (0x4293).
Conversation: 3.199V (0x42a7).
Conversation: 3.192V (0x4282).
Conversation: 3.186V (0x4261).
Conversation: 3.183V (0x424e).
Conversation: 3.185V (0x425b).
Conversation: 3.178V (0x4236).
Conversation: 3.178V (0x4235).
Conversation: 3.190V (0x4275).
Conversation: 3.181V (0x4243).
Conversation: 3.178V (0x4235).
^CSignal catched: 2
 Shutting down...

Additional make targets

Target Meaning
all Build the code, link the application executable.
install Install the application executable.
uninstall Uninstall the application executable.
clean Clean up build artifacts.
distclean Remove all folders created during any build step.
build_unit_test Build the unit tests.
exec_unit_test Execute the unit tests.
coverage Determine code coverage of the unit tests.
check Static code analysis (cppcheck).