Attempting to append a integer onto a file on the SD card, receives the error
error: cannot initialize a parameter of type ‘uint8_t *’ (aka ‘unsigned char *’) with an lvalue of type ‘uint8_t’ (aka ‘unsigned char’)
when compiling the code below
int x = Motor1.velocity(pct);
uint8_t y = x;
int bytes = Brain.SDcard.appendfile(targetFile, y, 3);
if (bytes <= 0) {
Brain.Screen.print("0 Byte Write Error");
Controller1.Screen.print("0 BYTE ERR");
}
Any assistance is appreciated.