Skip to content
Snippets Groups Projects
Commit 1f634ce1 authored by Armin Co's avatar Armin Co
Browse files

Added opening of the i2c device.

parent c62b41b0
Branches
No related tags found
No related merge requests found
......@@ -96,6 +96,12 @@ int main()
// run loop
i2c::Node arduino{0x14};
if (!arduino.open_device("/dev/i2c-1"))
{
spdlog::error("Failed to open device. Exiting...");
exit (1);
}
SmartGridModell modell{arduino};
using namespace std;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment