Merge branch 'develop' of ssh://git.lab-ouest.org:8022/Epitech/T-IOT-901_convoyor into feat/main-algo

# Conflicts:
#	config.ini
#	include/Program.h
#	lib/NFC/src/NfcReader.cpp
#	src/Program.cpp
This commit is contained in:
2024-01-26 09:46:49 +01:00
17 changed files with 655 additions and 155 deletions

View File

@ -23,3 +23,10 @@ String NfcReader::ReadNfc()
}
return (this->uid);
}
bool NfcReader::IsNfcConnected()
{
Wire.beginTransmission(NFC_ADDR);
byte error = Wire.endTransmission();
return error == 0;
}