1010static const mp_rom_map_elem_t board_module_globals_table [] = {
1111 CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
1212 // P0
13- { MP_ROM_QSTR (MP_QSTR_P0_00 ), MP_ROM_PTR (& pin_P0_00 ) },
14- { MP_ROM_QSTR (MP_QSTR_P0_01 ), MP_ROM_PTR (& pin_P0_01 ) },
15- { MP_ROM_QSTR (MP_QSTR_P0_02 ), MP_ROM_PTR (& pin_P0_02 ) },
16- { MP_ROM_QSTR (MP_QSTR_P0_03 ), MP_ROM_PTR (& pin_P0_03 ) },
17- { MP_ROM_QSTR (MP_QSTR_P0_04 ), MP_ROM_PTR (& pin_P0_04 ) },
18- { MP_ROM_QSTR (MP_QSTR_P0_05 ), MP_ROM_PTR (& pin_P0_05 ) },
19- { MP_ROM_QSTR (MP_QSTR_P0_06 ), MP_ROM_PTR (& pin_P0_06 ) },
20- { MP_ROM_QSTR (MP_QSTR_P0_07 ), MP_ROM_PTR (& pin_P0_07 ) },
21- { MP_ROM_QSTR (MP_QSTR_P0_08 ), MP_ROM_PTR (& pin_P0_08 ) },
22- { MP_ROM_QSTR (MP_QSTR_P0_09 ), MP_ROM_PTR (& pin_P0_09 ) },
13+ { MP_ROM_QSTR (MP_QSTR_P0_0 ), MP_ROM_PTR (& pin_P0_00 ) },
14+ { MP_ROM_QSTR (MP_QSTR_P0_1 ), MP_ROM_PTR (& pin_P0_01 ) },
15+ { MP_ROM_QSTR (MP_QSTR_P0_2 ), MP_ROM_PTR (& pin_P0_02 ) },
16+ { MP_ROM_QSTR (MP_QSTR_P0_3 ), MP_ROM_PTR (& pin_P0_03 ) },
17+ { MP_ROM_QSTR (MP_QSTR_P0_4 ), MP_ROM_PTR (& pin_P0_04 ) },
18+ { MP_ROM_QSTR (MP_QSTR_P0_5 ), MP_ROM_PTR (& pin_P0_05 ) },
19+ { MP_ROM_QSTR (MP_QSTR_P0_6 ), MP_ROM_PTR (& pin_P0_06 ) },
20+ { MP_ROM_QSTR (MP_QSTR_P0_7 ), MP_ROM_PTR (& pin_P0_07 ) },
21+ { MP_ROM_QSTR (MP_QSTR_P0_8 ), MP_ROM_PTR (& pin_P0_08 ) },
22+ { MP_ROM_QSTR (MP_QSTR_P0_9 ), MP_ROM_PTR (& pin_P0_09 ) },
2323 { MP_ROM_QSTR (MP_QSTR_P0_10 ), MP_ROM_PTR (& pin_P0_10 ) },
2424 { MP_ROM_QSTR (MP_QSTR_P0_11 ), MP_ROM_PTR (& pin_P0_11 ) },
2525 { MP_ROM_QSTR (MP_QSTR_P0_12 ), MP_ROM_PTR (& pin_P0_12 ) },
@@ -43,16 +43,16 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
4343 { MP_ROM_QSTR (MP_QSTR_P0_30 ), MP_ROM_PTR (& pin_P0_30 ) },
4444 { MP_ROM_QSTR (MP_QSTR_P0_31 ), MP_ROM_PTR (& pin_P0_31 ) },
4545 // P1
46- { MP_ROM_QSTR (MP_QSTR_P1_00 ), MP_ROM_PTR (& pin_P1_00 ) },
47- { MP_ROM_QSTR (MP_QSTR_P1_01 ), MP_ROM_PTR (& pin_P1_01 ) },
48- { MP_ROM_QSTR (MP_QSTR_P1_02 ), MP_ROM_PTR (& pin_P1_02 ) },
49- { MP_ROM_QSTR (MP_QSTR_P1_03 ), MP_ROM_PTR (& pin_P1_03 ) },
50- { MP_ROM_QSTR (MP_QSTR_P1_04 ), MP_ROM_PTR (& pin_P1_04 ) },
51- { MP_ROM_QSTR (MP_QSTR_P1_05 ), MP_ROM_PTR (& pin_P1_05 ) },
52- { MP_ROM_QSTR (MP_QSTR_P1_06 ), MP_ROM_PTR (& pin_P1_06 ) },
53- { MP_ROM_QSTR (MP_QSTR_P1_07 ), MP_ROM_PTR (& pin_P1_07 ) },
54- { MP_ROM_QSTR (MP_QSTR_P1_08 ), MP_ROM_PTR (& pin_P1_08 ) },
55- { MP_ROM_QSTR (MP_QSTR_P1_09 ), MP_ROM_PTR (& pin_P1_09 ) },
46+ { MP_ROM_QSTR (MP_QSTR_P1_0 ), MP_ROM_PTR (& pin_P1_00 ) },
47+ { MP_ROM_QSTR (MP_QSTR_P1_1 ), MP_ROM_PTR (& pin_P1_01 ) },
48+ { MP_ROM_QSTR (MP_QSTR_P1_2 ), MP_ROM_PTR (& pin_P1_02 ) },
49+ { MP_ROM_QSTR (MP_QSTR_P1_3 ), MP_ROM_PTR (& pin_P1_03 ) },
50+ { MP_ROM_QSTR (MP_QSTR_P1_4 ), MP_ROM_PTR (& pin_P1_04 ) },
51+ { MP_ROM_QSTR (MP_QSTR_P1_5 ), MP_ROM_PTR (& pin_P1_05 ) },
52+ { MP_ROM_QSTR (MP_QSTR_P1_6 ), MP_ROM_PTR (& pin_P1_06 ) },
53+ { MP_ROM_QSTR (MP_QSTR_P1_7 ), MP_ROM_PTR (& pin_P1_07 ) },
54+ { MP_ROM_QSTR (MP_QSTR_P1_8 ), MP_ROM_PTR (& pin_P1_08 ) },
55+ { MP_ROM_QSTR (MP_QSTR_P1_9 ), MP_ROM_PTR (& pin_P1_09 ) },
5656 { MP_ROM_QSTR (MP_QSTR_P1_10 ), MP_ROM_PTR (& pin_P1_10 ) },
5757 { MP_ROM_QSTR (MP_QSTR_P1_11 ), MP_ROM_PTR (& pin_P1_11 ) },
5858 { MP_ROM_QSTR (MP_QSTR_P1_12 ), MP_ROM_PTR (& pin_P1_12 ) },
@@ -76,16 +76,16 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
7676 { MP_ROM_QSTR (MP_QSTR_P1_30 ), MP_ROM_PTR (& pin_P1_30 ) },
7777 { MP_ROM_QSTR (MP_QSTR_P1_31 ), MP_ROM_PTR (& pin_P1_31 ) },
7878 // P2
79- { MP_ROM_QSTR (MP_QSTR_P2_00 ), MP_ROM_PTR (& pin_P2_00 ) },
80- { MP_ROM_QSTR (MP_QSTR_P2_01 ), MP_ROM_PTR (& pin_P2_01 ) },
81- { MP_ROM_QSTR (MP_QSTR_P2_02 ), MP_ROM_PTR (& pin_P2_02 ) },
82- { MP_ROM_QSTR (MP_QSTR_P2_03 ), MP_ROM_PTR (& pin_P2_03 ) },
83- { MP_ROM_QSTR (MP_QSTR_P2_04 ), MP_ROM_PTR (& pin_P2_04 ) },
84- { MP_ROM_QSTR (MP_QSTR_P2_05 ), MP_ROM_PTR (& pin_P2_05 ) },
85- { MP_ROM_QSTR (MP_QSTR_P2_06 ), MP_ROM_PTR (& pin_P2_06 ) },
86- { MP_ROM_QSTR (MP_QSTR_P2_07 ), MP_ROM_PTR (& pin_P2_07 ) },
87- { MP_ROM_QSTR (MP_QSTR_P2_08 ), MP_ROM_PTR (& pin_P2_08 ) },
88- { MP_ROM_QSTR (MP_QSTR_P2_09 ), MP_ROM_PTR (& pin_P2_09 ) },
79+ { MP_ROM_QSTR (MP_QSTR_P2_0 ), MP_ROM_PTR (& pin_P2_00 ) },
80+ { MP_ROM_QSTR (MP_QSTR_P2_1 ), MP_ROM_PTR (& pin_P2_01 ) },
81+ { MP_ROM_QSTR (MP_QSTR_P2_2 ), MP_ROM_PTR (& pin_P2_02 ) },
82+ { MP_ROM_QSTR (MP_QSTR_P2_3 ), MP_ROM_PTR (& pin_P2_03 ) },
83+ { MP_ROM_QSTR (MP_QSTR_P2_4 ), MP_ROM_PTR (& pin_P2_04 ) },
84+ { MP_ROM_QSTR (MP_QSTR_P2_5 ), MP_ROM_PTR (& pin_P2_05 ) },
85+ { MP_ROM_QSTR (MP_QSTR_P2_6 ), MP_ROM_PTR (& pin_P2_06 ) },
86+ { MP_ROM_QSTR (MP_QSTR_P2_7 ), MP_ROM_PTR (& pin_P2_07 ) },
87+ { MP_ROM_QSTR (MP_QSTR_P2_8 ), MP_ROM_PTR (& pin_P2_08 ) },
88+ { MP_ROM_QSTR (MP_QSTR_P2_9 ), MP_ROM_PTR (& pin_P2_09 ) },
8989 { MP_ROM_QSTR (MP_QSTR_P2_10 ), MP_ROM_PTR (& pin_P2_10 ) },
9090 { MP_ROM_QSTR (MP_QSTR_P2_11 ), MP_ROM_PTR (& pin_P2_11 ) },
9191 { MP_ROM_QSTR (MP_QSTR_P2_12 ), MP_ROM_PTR (& pin_P2_12 ) },
@@ -109,18 +109,25 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
109109 { MP_ROM_QSTR (MP_QSTR_P2_30 ), MP_ROM_PTR (& pin_P2_30 ) },
110110 { MP_ROM_QSTR (MP_QSTR_P2_31 ), MP_ROM_PTR (& pin_P2_31 ) },
111111 // P3
112- { MP_ROM_QSTR (MP_QSTR_P3_00 ), MP_ROM_PTR (& pin_P3_00 ) },
113- { MP_ROM_QSTR (MP_QSTR_P3_01 ), MP_ROM_PTR (& pin_P3_01 ) },
114- { MP_ROM_QSTR (MP_QSTR_P3_02 ), MP_ROM_PTR (& pin_P3_02 ) },
115- { MP_ROM_QSTR (MP_QSTR_P3_03 ), MP_ROM_PTR (& pin_P3_03 ) },
116- { MP_ROM_QSTR (MP_QSTR_P3_04 ), MP_ROM_PTR (& pin_P3_04 ) },
117- { MP_ROM_QSTR (MP_QSTR_P3_05 ), MP_ROM_PTR (& pin_P3_05 ) },
118- { MP_ROM_QSTR (MP_QSTR_P3_06 ), MP_ROM_PTR (& pin_P3_06 ) },
119- { MP_ROM_QSTR (MP_QSTR_P3_07 ), MP_ROM_PTR (& pin_P3_07 ) },
120- { MP_ROM_QSTR (MP_QSTR_P3_08 ), MP_ROM_PTR (& pin_P3_08 ) },
121- { MP_ROM_QSTR (MP_QSTR_P3_09 ), MP_ROM_PTR (& pin_P3_09 ) },
112+ { MP_ROM_QSTR (MP_QSTR_P3_0 ), MP_ROM_PTR (& pin_P3_00 ) },
113+ { MP_ROM_QSTR (MP_QSTR_P3_1 ), MP_ROM_PTR (& pin_P3_01 ) },
114+ { MP_ROM_QSTR (MP_QSTR_P3_2 ), MP_ROM_PTR (& pin_P3_02 ) },
115+ { MP_ROM_QSTR (MP_QSTR_P3_3 ), MP_ROM_PTR (& pin_P3_03 ) },
116+ { MP_ROM_QSTR (MP_QSTR_P3_4 ), MP_ROM_PTR (& pin_P3_04 ) },
117+ { MP_ROM_QSTR (MP_QSTR_P3_5 ), MP_ROM_PTR (& pin_P3_05 ) },
118+ { MP_ROM_QSTR (MP_QSTR_P3_6 ), MP_ROM_PTR (& pin_P3_06 ) },
119+ { MP_ROM_QSTR (MP_QSTR_P3_7 ), MP_ROM_PTR (& pin_P3_07 ) },
120+ { MP_ROM_QSTR (MP_QSTR_P3_8 ), MP_ROM_PTR (& pin_P3_08 ) },
121+ { MP_ROM_QSTR (MP_QSTR_P3_9 ), MP_ROM_PTR (& pin_P3_09 ) },
122122 // P4
123- { MP_ROM_QSTR (MP_QSTR_P4_00 ), MP_ROM_PTR (& pin_P4_00 ) },
124- { MP_ROM_QSTR (MP_QSTR_P4_01 ), MP_ROM_PTR (& pin_P4_01 ) },
123+ { MP_ROM_QSTR (MP_QSTR_P4_0 ), MP_ROM_PTR (& pin_P4_00 ) },
124+ { MP_ROM_QSTR (MP_QSTR_P4_1 ), MP_ROM_PTR (& pin_P4_01 ) },
125+
126+ // Silkscreen aliases
127+ { MP_ROM_QSTR (MP_QSTR_LED0 ), MP_ROM_PTR (& pin_P2_01 ) },
128+ { MP_ROM_QSTR (MP_QSTR_LED1 ), MP_ROM_PTR (& pin_P0_11 ) },
129+ { MP_ROM_QSTR (MP_QSTR_LED2 ), MP_ROM_PTR (& pin_P0_12 ) },
130+ { MP_ROM_QSTR (MP_QSTR_S2 ), MP_ROM_PTR (& pin_P1_27 ) },
131+
125132};
126133MP_DEFINE_CONST_DICT (board_module_globals , board_module_globals_table );
0 commit comments