Getting Started

(lily) #1

Chapter 8: C Pointers and Arrays


//__flash char TEXT_SONG5[] = "Sirene1";
const ch
ar TEXT_SONG5[] PROGMEM = "Sirene1";


//__flash int Sirene1[] =
const int Sirene1[] PROGMEM =
{
0,
32,400, 32,397, 32,394, 32,391, 32,388, 32,385, 32,382,
32,379, 32,376, 32,373, 32,370, 32,367, 32,364, 32,361,
32,358, 32,355, 32,352, 32,349, 32,346, 32,343, 32,340,
32,337, 32,334, 32,331, 32,328, 32,325, 32,322, 32,319,
32,316, 32,313, 32,310, 32,307, 32,304, 32,301, 32,298,
32,298, 32,301, 32,304, 32,307, 32,310, 32,313, 32,316,
32,319, 32,322, 32,325, 32,328, 32,331, 32,334, 32,337,
32,340, 32,343, 32,346, 32,349, 32,352, 32,355, 32,358,
32,361, 32,364, 32,367, 32,370, 32,373, 32,376, 32,379,
32,382, 32,385, 32,388, 32,391, 32,394, 32,397, 32,400,
0, 1
};


//__flash char TEXT_SONG6[] = "Sirene2";
const char TEXT_SONG6[] PROGMEM = "Sirene2";


//__flash int Sirene2[] =
const int Sirene2[] PROGMEM =
{
3,
4,c2, 4,g2,
0, 1
};


//__flash char TEXT_SONG7[] = "Whistle";
const char TEXT_SONG7[] PROGMEM = "Whistle";


//__flash int Whistle[] =
const int Whistle[] PROGMEM =
{
0,
32,200, 32,195, 32,190, 32,185, 32,180, 32,175, 32,170,
32,165, 32,160, 32,155, 32,150, 32,145, 32,140, 32,135,
32,130, 32,125, 32,120, 32,115, 32,110, 32,105, 32,100,
8,p, 32,200, 32,195, 32,190, 32,185, 32,180, 32,175,
32,170, 32,165, 32,160, 32,155, 32,150, 32,145, 32,140,
32,135, 32,130, 32,125, 32,125, 32,130, 32,135, 32,140,

Free download pdf