
at DATAFLASHSTART code unsigned char dataflash[DATAFLASHSIZE] = {



//this file loads the default calendar entries so that I don't need to type them all by hand
//each time the file is loaded into a new board.


#ifdef SECONDARY_SCHOOL
//weirdo, school, days, schedule
//every, morning, starts, at, the, same, time
8, 15, 99, 99, 99, 99, 0x41,        //on, every, day, at, 08:30
9, 00, 99, 99, 99, 99, 0x01,        //off, every, dat, at, 9:00


//Monday, Afternoon, Schedule
14, 55, 01, 99, 99, 99, 0x41,        //on, every, monday, at, 14, 55
15, 30, 01, 99, 99, 99, 0x01,        //off, every, monday, at, 15:30


//Tuesday, Afternoon, Schedule
15, 15, 02, 99, 99, 99, 0x41,        //on, every, Tuesday, at, 15:15
15, 45, 02, 99, 99, 99, 0x01,        //off, every, monday, at, 15:45


//Wednesday, Schedule
14, 55, 03, 99, 99, 99, 0x41,        //on, every, wednesday, at, 14, 55
15, 30, 03, 99, 99, 99, 0x01,        //off, every, wednesday, at, 15:30


//Thursday, Afternoon, Schedule
15, 15, 04, 99, 99, 99, 0x41,        //on, every, Thursday, at, 15:15
15, 45, 04, 99, 99, 99, 0x01,        //off, every, Thursday, at, 15:45


//Friday, Afternoon, Schedule
14, 25, 05, 99, 99, 99, 0x41,        //on, every, Friday, at, 14:25
14, 55, 05, 99, 99, 99, 0x01,        //off, every, Friday, at, 14:55


#endif

#ifdef PRIMARY_SCHOOL

//daily, on, schedule, for, Primary, Schools
8, 15, 99, 99, 99, 99, 0x41,        //on, every, day, at, 08:15
9, 00, 99, 99, 99, 99, 0x01,        //off, every, day, at, 9:00
14, 30, 99, 99, 99, 99, 0x41,        //on, every, day, at, 14, 30
15, 15, 99, 99, 99, 99, 0x01,        //off, every, dat, at, 15:15

#endif


//weekends
99, 99, 06, 99, 99, 99, 0x01,        //off, every, minute, on, a, saturday
99, 99, 00, 99, 99, 99, 0x01,        //off, every, minute, on, a, sunday

//school, holidays, term, 1, (includes, weeked, which, could, be, taken, out, if, short, on, space.
99, 99, 99, 02, 04, 10, 0x01,        //off, every, minute, on, 2, april, 2010
99, 99, 99, 03, 04, 10, 0x01,        //off, every, minute, on, 3, april, 2010
99, 99, 99, 04, 04, 10, 0x01,
99, 99, 99, 05, 04, 10, 0x01,
99, 99, 99, 06, 04, 10, 0x01,
99, 99, 99, 07, 04, 10, 0x01,
99, 99, 99, 8, 04, 10, 0x01,
99, 99, 99, 9, 04, 10, 0x01,
99, 99, 99, 10, 04, 10, 0x01,
99, 99, 99, 11, 04, 10, 0x01,
99, 99, 99, 12, 04, 10, 0x01,
99, 99, 99, 13, 04, 10, 0x01,
99, 99, 99, 14, 04, 10, 0x01,
99, 99, 99, 15, 04, 10, 0x01,
99, 99, 99, 16, 04, 10, 0x01,
99, 99, 99, 17, 04, 10, 0x01,
99, 99, 99, 18, 04, 10, 0x01,


  .... etc for each DATE that the alarm is set to be inactive.

//public, holidays
99, 99, 99, 02, 04, 10, 0x01,        //Good, Friday
99, 99, 99, 05, 04, 10, 0x01,        //Easter, Monday
99, 99, 99, 25, 04, 10, 0x01,        //Anzac, Day
99, 99, 99, 07, 06, 10, 0x01,        //Queens, Birthday
99, 99, 99, 25, 10, 10, 0x01,        //Labour, Day
99, 99, 99, 27, 12, 10, 0x01,        //Christmas, Day
99, 99, 99, 28, 12, 10, 0x01,        //Boxing, day
99, 99, 99, 03, 01, 11, 0x01,        //New, Years, Day
99, 99, 99, 04, 01, 11, 0x01,        //Day, After, New, Years, Day
99, 99, 99, 17, 01, 11, 0x01,        //Southland, Anniversary, Day.
99, 99, 99, 06, 02, 11, 0x01,        //Waitangi, Day


#ifdef SECONDARY_SCHOOL
//secondary, School, differences
99, 99, 99, 15, 12, 10, 0x01,
99, 99, 99, 16, 12, 10, 0x01,
99, 99, 99, 17, 12, 10, 0x01,
99, 99, 99, 18, 12, 10, 0x01,
99, 99, 99, 19, 12, 10, 0x01,
99, 99, 99, 20, 12, 10, 0x01,


#endif
