please declare, on top:
void contrast(int value);
else have this error:
src/main.cpp: In function 'void loop()':
src/main.cpp:110:5: error: 'contrast' was not declared in this scope; did you mean 'constrain'?
110 | contrast(128);
| ^~~~~~~~
| constrain
*** [.pio/build/heltec_wifi_kit_8/src/main.cpp.o] Error 1