diff --git a/christmas.h b/christmas.h index 1da415b..32b665d 100755 --- a/christmas.h +++ b/christmas.h @@ -1,9 +1,9 @@ #ifndef __christmas_h_ #define __christmas_h_ -#define HO_HO_HO "HO! HO! HO!" -#define MERRY_CHRISTMAS "Merry Christmas!" -#define HAPPY_NEW_YEAR "Happy New Year!" +#define HO_HO_HO "HO! HO! HO!\n" +#define MERRY_CHRISTMAS "Merry Christmas!\n" +#define HAPPY_NEW_YEAR "Happy New Year!\n" void initialise(); void tick(); diff --git a/christmas_arduino_led_example.ino b/christmas_arduino_led_example.ino index 5203e3d..a22059d 100644 --- a/christmas_arduino_led_example.ino +++ b/christmas_arduino_led_example.ino @@ -22,17 +22,17 @@ void initialise(){ //These methods are called when HO_HO_HO, MERRY_CHRISTMASS and HAPPY_NEW_YEAR are received over serial void ho_ho_ho(){ is_red_on = !is_red_on; - Serial.println(MERRY_CHRISTMAS); + Serial.print(MERRY_CHRISTMAS); } void merry_christmas(){ is_green_on = !is_green_on; - Serial.println(HAPPY_NEW_YEAR); + Serial.print(HAPPY_NEW_YEAR); } void happy_new_year(){ is_blue_on = !is_blue_on; - Serial.println(HO_HO_HO); + Serial.print(HO_HO_HO); } // Turns the led at the specified pin to on or off