add missing files, support display blanking

This commit is contained in:
2023-10-12 14:54:29 +02:00
parent 3fc72514a4
commit 9f8b9059f9
9 changed files with 293 additions and 25 deletions

9
item.cpp Normal file
View File

@ -0,0 +1,9 @@
#include "item.h"
#include "string.h"
void Item::setName(const char * const nameN)
{
size_t len = strlen(nameN);
if(len < MAX_NAME_LENGTH)memcpy(name, nameN, len+1);
}