Need help with uploading to arduino nano

Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano, ATmega328P"

In function 'void scanJoystick()':

 warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

  while (millis() < timestamp + snakeSpeed) {

         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

 In lambda function:

 warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

   for (int d = 0; d < sizeof(snakeMessage[0]) - 7; d++) {

                   ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

: In lambda function:

: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

   for (int d = 0; d < sizeof(gameOverMessage[0]) - 7; d++) {

                   ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

: In lambda function:

: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

   for (int d = 0; d < sizeof(scoreMessage[0]) + 2 * sizeof(digits[0][0]); d++) {

                   ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

      if (d <= sizeof(scoreMessage[0]) - 8) {

          ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Sketch uses 10426 bytes (33%) of program storage space. Maximum is 30720 bytes.

Global variables use 424 bytes (20%) of dynamic memory, leaving 1624 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch



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

The error messages posted are warnings that can be ignored. The problem is in the upload step.

Enable this option (also check the "upload" box) and post the result:

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

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