Struttura Spartiti.HMI
Contenuto della SD di arduino:
Abbiamo 9 file:
spart1.txt
spart2.txt
spart3.txt
spart4.txt
spart5.txt
spart6.txt
spart7.txt
spart8.txt
spart9.txt
In ciascuno di questi file abbimo un numero variabile di righe del tipo:
TITOLO DELLO SPARTITO;Nome del file immagini .xi; altezza prima pagina; altezza seconda pagina;3ª
dove il (;) è un separatore
es:
SPIDY MARCIA SAX CONTRALTO;spidy01.xi;500
SPIDY MARCIA SAX CLLARINETTO;spidy02.xi;500;520;600
SPIDY MARCIA SAX BARITONO;spidy03.xi;272
SPRITZ BANDA;001.xi;300
ecc
Questi file sono 9 perchè noi abbiamo questa struttura:
pagina 0 tre menu.
BANDA UNO
BANDA DUE
BANDA TRE
Ciascuno di questi pulsanti porta alla pagina 1 che contiene altri tre menù:
MARCE
SINFONICI
LITURGICI
Che sono i generi degli spartiti
A loro volta ciascuno di questi tre pulsanti portano alla pagina successiva la pagina2 che contiene la listBox con l'elenco degli spartiti. Percui avremo 9 file perche 3 bande x 3 generi fanno 9 combinazioni. Si potrebbe fare una tabella di corrispondenze del tipo:
BANDA UNO/MARCE/spart1.txt
BANDA UNO/SINFONICI/spart2.txt
BANDA UNO/LITURGICI/spart3.txt
BANDA DUE/MARCE/spart4.txt
BANDA DUE/SINFONICI/spart5.txt
BANDA DUE/LITURGICI/spart6.txt
BANDA TRE/MARCE/spart7.txt
BANDA TRE/SINFONICI/spart8.txt
BANDA TRE/LITURGICI/spart9.txt
Struttura file Spartiti.HMI:
Pagina 0:
| ETICHETTA |
Tipo |
Nome |
Evento press |
Evento release |
Proprietà |
| |
ExPicture |
exp0 |
|
|
path: sd0/001.xi |
| BANDA UNO |
Bottone |
b0 |
print "B1" |
|
|
| BANDA UNO |
Bottone |
b1 |
print "B2" |
|
|
| BANDA UNO |
Bottone |
b2 |
print "B3" |
|
|
Pagina 1:
| ETICHETTA |
Tipo |
Nome |
Evento press |
Evento release |
Proprietà |
| |
ExPicture |
exp0 |
|
|
path:sd0/banda2.xi |
| MARCE |
Bottone |
b0 |
print "M" |
|
|
| SINFONICI |
Bottone |
b1 |
print "S" |
|
|
| LITURGICI |
Bottone |
b2 |
print "L" |
|
|
| |
Hotspot |
m0 |
print "P0" |
|
|
Pagina 2:
| ETICHETTA |
Tipo |
Nome |
Evento press |
Evento release |
Proprietà |
| |
Text |
t0 |
print "t0" |
print "R" |
|
| |
Text |
t1 |
print "t1" |
print "R" |
|
| |
Text |
t2 |
print "t2" |
print "R" |
|
| DEFAULT |
Text |
t3 |
print "t3" |
print "R" |
|
| |
Text |
t4 |
print "t4" |
print "R" |
|
| |
Text |
t5 |
print "t5" |
print "R" |
|
| |
Text |
t6 |
print "t6" |
print "R" |
|
| |
Text |
tt7 |
print "t7" |
print "R" |
|
| |
Timer |
tm0 |
if(tch1>0)
{
print "H"
print tch1
} |
|
tim: 50 ms
en: 1 |
| |
Hotspot |
m0 |
print "P1" |
|
|
Pagina 3:
| ETICHETTA |
Tipo |
Nome |
Evento press |
Evento release |
Proprietà |
| |
ExPicture |
exp0 |
|
print "R" |
path:sd0/banda2.xi |
| |
Timer |
tm0 |
if(tch1>0)
{
print "H"
print tch1
} |
|
tim: 50 ms
en: 1 |
| |
Hotspot |
m0 |
print "P2" |
|
|
| |
Hotspot |
m1 |
|
|
|
Contenuto della SD del Nextion:
Questa microSD contiene tutte le immagini in formato .xi es:
spidy01.xi
spidy02.xi
spidy03.xi
ecc
Che sono i file immagini che il Nextion dovrà visualizzare
|