Errors Onesheeld code please help me

I'm new to using arduino so I need help with the codes. I'm trying to make a line follower robot using onesheeld, but when I write the codes I found on the internet, I encounter errors. Can you help me with this, what could I be missing?

codes : #define CUSTOM_SETTINGS
#define INCLUDE_TERMINAL_SHIELD
#define INCLUDE_COLOR_DETECTOR_SHIELD
#include <OneSheeld.h>

unsigned long white = 0xFFFFFF;
int motor1PWM = 3;
int motor1DIR = 4;
int motor2PWM = 6;
int motor2DIR = 7;

void setup() {
OneSheeld.begin();
ColorDetector.setOnSelected(&selected);
pinMode(motor1PWM, OUTPUT);
pinMode(motor1DIR, OUTPUT);
pinMode(motor2PWM, OUTPUT);
pinMode(motor2DIR, OUTPUT);

digitalWrite(motor1DIR, LOW);
digitalWrite(motor2DIR, HIGH);
}

void loop() {
}

void selected()
{
ColorDetector.setPalette(_3_BIT_RGB_PALETTE);
ColorDetector.enableFullOperation();
ColorDetector.setCalculationMode(MOST_DOMINANT_COLOR);
ColorDetector.setOnNewColor(&newColor);
}

void newColor(Color one,Color two,Color three,Color four,Color five,Color six,Color seven,Color eight,Color nine)
{
if (three == white && one == white)
{ moveForward(); }
else if (three == white && one != white)
{ moveLeft(); }
else if (one == white && three != white)
{ moveRight(); }
}

void moveForward()
{
analogWrite(motor1PWM, 25);
analogWrite(motor2PWM, 25);
}

void moveRight()
{
analogWrite(motor1PWM, 20);
analogWrite(motor2PWM, 12);
}

void moveLeft()
{
analogWrite(motor1PWM, 12);
analogWrite(motor2PWM, 20);
}

ERRORS

The easier you make it to read and copy your code the more likely it is that you will get help

Please follow the advice given in the link below when posting code , use code tags and post the code here

If you get errors when compiling please copy them from the IDE using the "Copy error messages" button and paste the clipboard here in code tags

"591 byte of Factory Settings They play 1447 bytes native"?

That one's new to me.

Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"
C:\Users\User\Documents\Arduino\libraries\OneSheeld\BarcodeScannerShield.cpp: In the 'BarcodeScannerShield::BarcodeScannerShield()' constructor:

C:\Users\User\Documents\Arduino\libraries\OneSheeld\BarcodeScannerShield.cpp:35:15: warning: invalid conversion from 'char to 'char*' [-fpermissive]

barcodeData= '\0';

           ^~~~

Sketch uses 9800 bytes (30%) of program storage space. Maximum is 32256 bytes.

Global variables use 591 bytes (28%) of dynamic memory, leaving 1457 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x75

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x75

Problem uploading to board. See Upload – Arduino Help Center for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

That error message is about as different to the image you posted earlier as it is possible to be.

Why are they so different?

What board do you have comnected?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.