×

Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.

Member #855529

Member Since: October 19, 2016

Country: United States

  • Hi, can someone help me? I've been trying to display the clock program that this site gives us but when I verify it it says:

    Arduino : 1.6.9 (Windows 7), Carte : "Arduino/Genuino Uno"

    sketch_oct19a:23: error: 'LCDShield' does not name a type

    LCDShield lcd;

    ^

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino: In function 'void setup()':

    sketch_oct19a:44: error: 'lcd' was not declared in this scope

    lcd.init(PHILIPS);

    ^

    sketch_oct19a:44: error: 'PHILIPS' was not declared in this scope

    lcd.init(PHILIPS);

            ^
    

    sketch_oct19a:17: error: 'BLACK' was not declared in this scope

    #define BACKGROUND BLACK // room for growth, adjust the background color according to daylight

                     ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:46:13: note: in expansion of macro 'BACKGROUND'

    lcd.clear(BACKGROUND);

             ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino: In function 'void displayDigitalTime(int, int, int, int)':

    sketch_oct19a:185: error: 'lcd' was not declared in this scope

    lcd.setStr(timeChar, CLOCK_CENTER + CLOCK_RADIUS + 4, 22, C_COLOR, BACKGROUND);

    ^

    sketch_oct19a:18: error: 'RED' was not declared in this scope

    #define C_COLOR RED // This is the color of the clock face, and digital clock

                  ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:185:61: note: in expansion of macro 'C_COLOR'

    lcd.setStr(timeChar, CLOCK_CENTER + CLOCK_RADIUS + 4, 22, C_COLOR, BACKGROUND);

                                                             ^
    

    sketch_oct19a:17: error: 'BLACK' was not declared in this scope

    #define BACKGROUND BLACK // room for growth, adjust the background color according to daylight

                     ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:185:70: note: in expansion of macro 'BACKGROUND'

    lcd.setStr(timeChar, CLOCK_CENTER + CLOCK_RADIUS + 4, 22, C_COLOR, BACKGROUND);

                                                                      ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino: In function 'void drawClock()':

    sketch_oct19a:196: error: 'lcd' was not declared in this scope

    lcd.setCircle(CLOCK_CENTER, 66, CLOCK_RADIUS, C_COLOR);

    ^

    sketch_oct19a:18: error: 'RED' was not declared in this scope

    #define C_COLOR RED // This is the color of the clock face, and digital clock

                  ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:196:49: note: in expansion of macro 'C_COLOR'

    lcd.setCircle(CLOCK_CENTER, 66, CLOCK_RADIUS, C_COLOR);

                                                 ^
    

    sketch_oct19a:17: error: 'BLACK' was not declared in this scope

    #define BACKGROUND BLACK // room for growth, adjust the background color according to daylight

                     ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:201:64: note: in expansion of macro 'BACKGROUND'

    lcd.setStr("12", CLOCK_CENTER - CLOCK_RADIUS, 66-9, C_COLOR, BACKGROUND);

                                                                ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino: In function 'void displayAnalogTime(int, int, int)':

    sketch_oct19a:230: error: 'lcd' was not declared in this scope

    lcd.setLine(CLOCK_CENTER, 66, CLOCK_CENTER+sx, 66+sy, BACKGROUND); // delete second hand

    ^

    sketch_oct19a:17: error: 'BLACK' was not declared in this scope

    #define BACKGROUND BLACK // room for growth, adjust the background color according to daylight

                     ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:230:57: note: in expansion of macro 'BACKGROUND'

    lcd.setLine(CLOCK_CENTER, 66, CLOCK_CENTER+sx, 66+sy, BACKGROUND); // delete second hand

                                                         ^
    

    sketch_oct19a:21: error: 'YELLOW' was not declared in this scope

    #define S_COLOR YELLOW // second hand color

                  ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:238:57: note: in expansion of macro 'S_COLOR'

    lcd.setLine(CLOCK_CENTER, 66, CLOCK_CENTER+sx, 66+sy, S_COLOR); // print second hand

                                                         ^
    

    sketch_oct19a:20: error: 'GREEN' was not declared in this scope

    #define M_COLOR GREEN // minute hand color

                  ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:243:57: note: in expansion of macro 'M_COLOR'

    lcd.setLine(CLOCK_CENTER, 66, CLOCK_CENTER+mx, 66+my, M_COLOR); // print minute hand

                                                         ^
    

    sketch_oct19a:19: error: 'BLUE' was not declared in this scope

    #define H_COLOR BLUE // hour hand color

                  ^
    

    C:\Users\tdonxaya\AppData\Local\Temp\arduino_modified_sketch_585386\sketch_oct19a.ino:251:57: note: in expansion of macro 'H_COLOR'

    lcd.setLine(CLOCK_CENTER, 66, CLOCK_CENTER+hx, 66+hy, H_COLOR); // print hour hand

                                                         ^
    

    exit status 1 'LCDShield' does not name a type

    Ce rapport pourrait être plus détaillé avec l'option "Afficher les résultats détaillés de la compilation" activée dans Fichier -> Préférences.

No public wish lists :(