From 410fbd473ad039dc815bc450f3b26732b13ac4dc Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Mon, 30 May 2016 10:08:26 +0930 Subject: First code commit --- qt/RGBController/serial_communication.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 qt/RGBController/serial_communication.h (limited to 'qt/RGBController/serial_communication.h') diff --git a/qt/RGBController/serial_communication.h b/qt/RGBController/serial_communication.h new file mode 100644 index 0000000..d037757 --- /dev/null +++ b/qt/RGBController/serial_communication.h @@ -0,0 +1,23 @@ +#ifndef SERIAL_COMMUNICATION_H +#define SERIAL_COMMUNICATION_H + +/* includes */ +#include +#include + + +class serial_communication +{ +public: + /* function declares */ + serial_communication(); + bool serial_connect(QString port); + bool serial_disconnect(); + void rgb_change(int r, int g, int b); + /* variables */ + QString port_name; + QSerialPort serial; + QByteArray data; +}; + +#endif // SERIAL_COMMUNICATION_H -- cgit v1.2.3