*** Hunt_The_Wumpus.ino.orig 2012-11-24 12:43:10.936042927 -0500 --- Hunt_The_Wumpus.ino 2012-11-24 13:14:11.908126852 -0500 *************** *** 42,47 **** --- 42,48 ---- #include #include "Hunt_The_Wumpus.h" + #define MONO 1 // cheapskate with no RGB (or they were out of stock) //! Map of the cavern layout. /*! *************** *** 270,276 **** --- 271,281 ---- //! Initial game state, draw the splash screen. void begin_splash_screen() { lcd.clear(); + #ifndef MONO lcd.setBacklight(TEAL); + #else + lcd.setBacklight(RED); // MONO backlight ON is on RED line + #endif lcd.print(F("HUNT THE WUMPUS")); state = animate_splash_screen; *************** *** 357,363 **** --- 362,370 ---- void begin_bat_move() { lcd.clear(); + #ifndef MONO lcd.setBacklight(BLUE); + #endif lcd.write(BAT_ICON_IDX); lcd.setCursor(5, 0); lcd.print(F("Bats!")); *************** *** 429,439 **** --- 436,448 ---- lcd.write(ARROW_ICON_IDX); lcd.print(arrow_count); + #ifndef MONO if (adjacent_hazards) { lcd.setBacklight(YELLOW); } else { lcd.setBacklight(TEAL); } + #endif lcd.setCursor(1, 1); for (int i=0; i-->")); arrow_count--; *************** *** 575,581 **** --- 590,598 ---- void draw_game_over_screen(uint8_t backlight, __FlashStringHelper *message, uint8_t icon) { lcd.clear(); + #ifndef MONO lcd.setBacklight(backlight); + #endif lcd.print(message); lcd.setCursor(0, 1); lcd.write(icon);
Text editor powered by tinymce.