From e5382e43fcc8d143db24d80833a02b44b9c0b78e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 15 Feb 2019 12:50:06 +0106 Subject: schulung_tools: leds: add Qt leds application for host The leds application runs on the host and is used to simulate PCI hardware with 3 LEDs. See the README for information about how to build and use it. Signed-off-by: John Ogness --- schulung_tools/leds/main.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 schulung_tools/leds/main.cpp (limited to 'schulung_tools/leds/main.cpp') diff --git a/schulung_tools/leds/main.cpp b/schulung_tools/leds/main.cpp new file mode 100644 index 0000000..ec5e92b --- /dev/null +++ b/schulung_tools/leds/main.cpp @@ -0,0 +1,14 @@ +#include "leds.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + Leds w; + if (w.init()) + return -1; + + w.show(); + + return a.exec(); +} -- cgit v1.2.3