// Core library for code-sense #include "Energia.h" // Following includes for Energia only #include "SPI.h" #include "Screen_HX8353E.h" Screen_HX8353E myScreen; // Define variables and constants #include "builtinpic.h" #define note_cc 261 #define note_dd 294 #define note_ee 329 #define note_ff 349 #define note_g 391 #define note_gS 415 #define note_a 440 #define note_aS 455 #define note_b 466 #define note_cH 523 #define note_cSH 554 #define note_dH 587 #define note_dSH 622 #define note_eH 659 #define note_fH 698 #define note_fSH 740 #define note_gH 784 #define note_gSH 830 #define note_aH 880 #define BUZZER_PIN 40 void beep(int note, int duration) { tone(BUZZER_PIN, note, duration/2); delay(duration/2); noTone(BUZZER_PIN); delay(duration/2 + 20); } // Add setup code void setup() { myScreen.begin(); myScreen.setOrientation(0); pinMode(BUZZER_PIN,OUTPUT); } // Add loop code void loop() { myScreen.clear(whiteColour); uint16_t* mypic_ptr=(uint16_t*)mypic_arr; for (uint8_t y=0; y