2023-08-29 10:04:07 +02:00
|
|
|
#ifndef PROGRAM_H
|
|
|
|
#define PROGRAM_H
|
|
|
|
|
2023-11-10 16:47:39 +01:00
|
|
|
#include "DolibarrClient.h"
|
|
|
|
#include <M5Stack.h>
|
2023-12-08 09:45:07 +01:00
|
|
|
#include "ServoMotorComponent.h"
|
2024-01-25 14:29:08 +01:00
|
|
|
#include "NfcReader.h"
|
|
|
|
#include "GRBL.h"
|
2024-02-01 11:53:19 +01:00
|
|
|
#include "BigNfcReader.h"
|
2023-08-29 10:04:07 +02:00
|
|
|
|
|
|
|
class Program {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Program startup
|
|
|
|
*/
|
|
|
|
Program();
|
|
|
|
|
|
|
|
/**
|
2023-11-10 16:47:39 +01:00
|
|
|
* Program WarehouseGUI loop
|
2023-08-29 10:04:07 +02:00
|
|
|
*/
|
|
|
|
void loop();
|
2024-01-25 14:29:08 +01:00
|
|
|
void checkNfc();
|
|
|
|
void checkServo();
|
|
|
|
void checkWifi();
|
2024-02-09 08:31:10 +01:00
|
|
|
void moveStepper();
|
2023-11-10 16:47:39 +01:00
|
|
|
private:
|
|
|
|
DolibarrClient *client;
|
2023-12-08 09:45:07 +01:00
|
|
|
ServoMotorComponent *servo;
|
2024-01-25 14:29:08 +01:00
|
|
|
NfcReader *nfcReader;
|
|
|
|
GRBL *grbl;
|
2024-02-01 11:53:19 +01:00
|
|
|
BigNfcReader* outputReader;
|
2024-02-02 14:39:50 +01:00
|
|
|
int grblUpdateTime;
|
2023-08-29 10:04:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|