-
Notifications
You must be signed in to change notification settings - Fork 1
/
harpsi-gourd.mpf.h
31 lines (28 loc) · 1.65 KB
/
harpsi-gourd.mpf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "PitchToNote.h"
/*
Piano keys Left to Right
F3, G3b, G3, A3b, A3, B3b, B3, C4, D4b, D4, E4b, E4, F4, G4b, G4, A4b, A4, B4b, B4, C5, D5b, D5, E5b, E5
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
*/
mprs chips[] = {
(mprs) {
MPR121A, // pointer to above reserved memory structure
0x5A, // ADDR tied to GND, individual address of MPR121 on I2C bus
{30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30}, //tthresh
{10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10}, //rthresh
{00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00}, //timeout
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, //noteState
{D5, D5b, C5, A4b, G4, G4b, D4, D4b, C4, D7, D7b, C7}, //key ** Customize to fit your Build **
{ 3, 4, 5, 9, 10, 11, 15, 16, 17, 21, 22, 23} //ledPos ** Customize to fit your Build **
},
(mprs) {
MPR121B, // pointer to above reserved memory structure
0x5B, // ADDR tied to 5V, individual address of MPR121 on I2C bus
{30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30}, //tthresh
{10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10}, //rthresh
{00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00}, //timeout
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, //noteState
{B4, B4b, A4, F4, E4, E4b, F6, E6, E6b, D6, E5b, E5}, //key ** Customize to fit your Build **
{ 6, 7, 8, 12, 13, 14, 18, 19, 20, 24, 2, 1} //ledPos ** Customize to fit your Build **
}
};