Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scale.h 453B

12345678910111213141516171819202122232425262728
  1. /*868:*/
  2. #line 103 "./scales.w"
  3. #ifndef TypicaScaleInclude
  4. #define TypicaScaleInclude
  5. #include "3rdparty/qextserialport/src/qextserialport.h"
  6. #include "units.h"
  7. class SerialScale:public QextSerialPort
  8. {
  9. Q_OBJECT
  10. public:
  11. SerialScale(const QString&port);
  12. public slots:
  13. void tare();
  14. void weigh();
  15. signals:
  16. void newMeasurement(double weight,Units::Unit unit);
  17. private slots:
  18. void dataAvailable();
  19. private:
  20. QByteArray responseBuffer;
  21. };
  22. #endif
  23. /*:868*/