This commit is contained in:
2024-02-01 11:53:19 +01:00
parent a105387c21
commit 35ecce7d5d
4 changed files with 16 additions and 11 deletions

View File

@ -80,6 +80,7 @@ Program::Program() {
this->servo = new ServoMotorComponent(2, 1, 1);
this->servo->setDesiredPosition(Position::MIDDLE);
this->grbl = new GRBL(STEPMOTOR_I2C_ADDR);
this->outputReader = new BigNfcReader();
Wire.begin(21, 22);
grbl->init(STEPER_SPEED, STEPER_PAS, STEPER_ACC);
struct WifiConfig wifi_c = {WIFI_SSID, WIFI_PASSWORD};
@ -97,6 +98,8 @@ void Program::loop() {
derniereExecution = maintenant;
}
this->servo->refresh();
this->outputReader->refresh();
Serial.printf("Output colis number : ", this->outputReader->getNbTags());
String nfcId = this->nfcReader->ReadNfc();
//si qqc