Cant Upload Sketch, Please Help

Whenever I click to upload the sketch I get this message:
Sketch uses bytes (3%) of program storage space. Maximum is 49152 bytes.
Global variables use 46 bytes (0%) of dynamic memory, leaving 6098 bytes for local variables. Maximum is 6144 bytes.
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description.
The first two lines I believe are normal but the third appeared in red on any sketch I tried to upload. I had recently soldered it to some wires. Any help?

The third is also normal, expected, and doesn't indicate any problem. Please ignore it.

If this is your only concern, you can happily go back to having fun with Arduino. If you're having an actual problem, please provide details and we'll help you out.

Should I expect the code to run after uploading while stil plugged into my computer. Heres the code sorry for the lack of comments, it is designed to display the date and time on an lcd, accuracy is not a problem I'm only doing this to learn arduino.


#include <LiquidCrystal.h>

LiquidCrystal lcd(1, 2, 3, 4, 5, 6, 7);

void setup()
{
lcd.begin(16, 2);
}

void loop()
{
int hour = 16;
int minute = 0;
int second = 0;

int month = 2;
int day = 16;
int year = 2020;

bool isLeapYear = true;

int month1 = 31;
int month2 = 28;
int month3 = 31;
int month4 = 30;
int month5 = 31;
int month6 = 30;
int month7 = 31;
int month8 = 31;
int month9 = 30;
int month10 = 31;
int month11 = 30;
int month12 = 31;

int maxDay = 28;
int earliestLeapYear = 2020;
int hour12 = 4;

String hourS = "16";
String minuteS = "0";
String secondS = "0";

String dayS = "16";
String yearS = "2020";

String hour12S = "4";

String monthS = "Feb";
String printSpace = " ";

delay(999);
second++;

if (year == earliestLeapYear) {
isLeapYear = true;
} else if (year == earliestLeapYear && month == 12 && day == month12 && hour == 23 && minute == 59 && second == 59) {
earliestLeapYear++;
earliestLeapYear++;
earliestLeapYear++;
earliestLeapYear++;
}

if (isLeapYear = true) {
month2 = 29;
}
else if (isLeapYear = false) {
month2 = 28;
}

if (month == 1) {
maxDay = month1;
monthS = "Jan";
}
else if (month == 2) {
maxDay = month2;
monthS = "Feb";
}
else if (month == 3) {
maxDay = month3;
monthS = "Mar";
}
else if (month == 4) {
maxDay = month4;
monthS = "Apr";
}
else if (month == 5) {
maxDay = month5;
monthS = "May";
}
else if (month == 6) {
maxDay = month6;
monthS = "Jun";
}
else if (month == 7) {
maxDay = month7;
monthS = "Jul";
}
else if (month == 8) {
maxDay = month8;
monthS = "Aug";
}
else if (month == 9) {
maxDay = month9;
monthS = "Sep";
}
else if (month == 10) {
maxDay = month10;
monthS = "Oct";
}
else if (month == 11) {
maxDay = month11;
monthS = "Nov";
}
else if (month == 12) {
maxDay = month12;
monthS = "Dec";
}

if (second >= 60) {
second = 0;
minute++;
}
if (minute >= 60 && second >= 60) {
minute = 0;
hour++;
}
if (hour >= 24 && minute >= 60 && second >= 60) {
hour = 0;
day++;
}
if (day >= maxDay && hour >= 24 && minute >= 60 && second >= 60) {
day = 0;
month++;
}
if (month >= 12 && day >= maxDay && hour >= 24 && minute >= 60 && second >= 60) {
month = 0;
year++;
}

if (hour > 12) {
hour12 = hour - 12;
}
else {
hour12 = hour;
}

lcd.setCursor(0, 0);
lcd.print(" " + (String)hour12 + ":" + (String)minuteS + ":" + (String)second + " ");
lcd.setCursor(0, 1);
lcd.print(printSpace + monthS + " " + (String)day + ", " + (String)year);
}

Ok, thanks for the reply, the blink example sketch works as it should but I cant get the lcd to work

EvanOverman:
Should I expect the code to run after uploading while stil plugged into my computer.

Yes.

EvanOverman:
I cant get the lcd to work

Let's start with a known good sketch, the LiquidCrystal library's HelloWorld example sketch. Upload this to your Arduino board:

#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
LiquidCrystal lcd(1, 2, 3, 4, 5, 6, 7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}

Do you see "hello, world!", and the milliseconds readout printed on your LCD?