Show pageOld revisionsBacklinksODT exportBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Using GPIOs in Arduino with flipper board ====== ---- tags: flipper, Arduino, GPIO If you need to use a flipper GPIO in Arduino, you need to find the arduino name of the GPIO : To do so, use following table and check for the arduino name of the GPIO you want to use.\\ The GPIOs are described in the following spreadsheet file: {{ :products:flipper:gpio_flipper.xlsx |}} {| border="1" width="86" cellspacing="0" |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">Header 1 (J402)</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">expander pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|name in arduino | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">1</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VIN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">2</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">GND</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">3</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VCC</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">4</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">BRD_EN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">5</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VCC_SW_EN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">6</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">3V3_SW_EN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">7</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">11</span> | align="center" valign="bottom"|<span style="color: #000000;">11</span> | align="center" valign="bottom"|<span style="color: #000000;">I2C0_SDA</span> | align="center" valign="bottom"|PIN_WIRE_SDA | align="center" valign="bottom"|<span style="color: #000000;">0</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">8</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">3V3</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">9</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">8</span> | align="center" valign="bottom"|<span style="color: #000000;">8</span> | align="center" valign="bottom"|<span style="color: #000000;">I2C0_SCL</span> | align="center" valign="bottom"|PIN_WIRE_SCL | align="center" valign="bottom"|<span style="color: #000000;">1</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">10</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">8</span> | align="center" valign="bottom"|<span style="color: #000000;">40</span> | align="center" valign="bottom"|<span style="color: #000000;">SPI0_MISO</span> | align="center" valign="bottom"|PIN_SPI_MISO | align="center" valign="bottom"|<span style="color: #000000;">2</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">11</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">6</span> | align="center" valign="bottom"|<span style="color: #000000;">6</span> | align="center" valign="bottom"|<span style="color: #000000;">SPI0_MOSI</span> | align="center" valign="bottom"|PIN_SPI_MOSI | align="center" valign="bottom"|<span style="color: #000000;">3</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">12</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">25</span> | align="center" valign="bottom"|<span style="color: #000000;">25</span> | align="center" valign="bottom"|<span style="color: #000000;">SPIO_CS1</span> | align="center" valign="bottom"|SS2 | align="center" valign="bottom"|<span style="color: #000000;">4</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">13</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">4</span> | align="center" valign="bottom"|<span style="color: #000000;">4</span> | align="center" valign="bottom"|<span style="color: #000000;">SPIO_SCLK</span> | align="center" valign="bottom"|PIN_SPI_SCK | align="center" valign="bottom"|<span style="color: #000000;">5</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">14</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">14</span> | align="center" valign="bottom"|<span style="color: #000000;">14</span> | align="center" valign="bottom"|<span style="color: #000000;">UART1_TX</span> | align="center" valign="bottom"|PIN_SERIAL2_TX | align="center" valign="bottom"|<span style="color: #000000;">6</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">15</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">16</span> | align="center" valign="bottom"|<span style="color: #000000;">16</span> | align="center" valign="bottom"|<span style="color: #000000;">UART1_RX</span> | align="center" valign="bottom"|PIN_SERIAL2_TX | align="center" valign="bottom"|<span style="color: #000000;">7</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">16</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">13</span> | align="center" valign="bottom"|<span style="color: #000000;">13</span> | align="center" valign="bottom"|<span style="color: #000000;">UART0_TX</span> | align="center" valign="bottom"|PIN_SERIAL1_TX | align="center" valign="bottom"|<span style="color: #000000;">8</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">17</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">15</span> | align="center" valign="bottom"|<span style="color: #000000;">15</span> | align="center" valign="bottom"|<span style="color: #000000;">UART0_RX</span> | align="center" valign="bottom"|PIN_SERIAL1_RX | align="center" valign="bottom"|<span style="color: #000000;">9</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">18</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">EXT_RST</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">19</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">GND</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">20</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VUSB</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">Header 2 (J401)</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">expander pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">21</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VBAT</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">22</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">GND</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">23</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">VDD_SW_EN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">24</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;">3V3_SW_EN</span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#FF0000"|<span style="color: #000000;"> </span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">25</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">33</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined</span> | align="center" valign="bottom"|EXP_25 | align="center" valign="bottom"|<span style="color: #000000;">10</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">26</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">12</span> | align="center" valign="bottom"|<span style="color: #000000;">12</span> | align="center" valign="bottom"|<span style="color: #000000;">I2C1_SDA</span> | align="center" valign="bottom"|PIN_WIRE1_SDA | align="center" valign="bottom"|<span style="color: #000000;">11</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">27</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">11</span> | align="center" valign="bottom"|<span style="color: #000000;">43</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined</span> | align="center" valign="bottom"|<span style="font-family: Cambria;">EXP_27</span> | align="center" valign="bottom"|<span style="color: #000000;">12</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">28</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">9</span> | align="center" valign="bottom"|<span style="color: #000000;">41</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">I2C1_SCL</span> | align="center" valign="bottom"|PIN_WIRE1_SCL | align="center" valign="bottom"|<span style="color: #000000;">13</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">29</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">30</span> | align="center" valign="bottom"|<span style="color: #000000;">30</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined/AIN6</span> | align="center" valign="bottom"|EXP_29 | align="center" valign="bottom"|<span style="color: #000000;">14</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">30</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">13</span> | align="center" valign="bottom"|<span style="color: #000000;">45</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined</span> | align="center" valign="bottom"|EXP_30 | align="center" valign="bottom"|<span style="color: #000000;">15</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">31</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">2</span> | align="center" valign="bottom"|<span style="color: #000000;">2</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined/AIN0</span> | align="center" valign="bottom"|EXP_31 | align="center" valign="bottom"|<span style="color: #000000;">16</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">32</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">28</span> | align="center" valign="bottom"|<span style="color: #000000;">28</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined/AIN7</span> | align="center" valign="bottom"|EXP_32 | align="center" valign="bottom"|<span style="color: #000000;">17</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">33</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">10</span> | align="center" valign="bottom"|<span style="color: #000000;">42</span> | align="center" valign="bottom"|<span style="color: #000000;">LED_BLUE</span> | align="center" valign="bottom"|LED_BLUE | align="center" valign="bottom"|<span style="color: #000000;">18</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">34</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">29</span> | align="center" valign="bottom"|<span style="color: #000000;">29</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined/AIN5</span> | align="center" valign="bottom"|EXP_34 | align="center" valign="bottom"|<span style="color: #000000;">19</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">35</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">7</span> | align="center" valign="bottom"|<span style="color: #000000;">39</span> | align="center" valign="bottom"|<span style="color: #000000;">LED_GREEN </span> | align="center" valign="bottom"|LED_GREEN | align="center" valign="bottom"|<span style="color: #000000;">20</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">36</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">3</span> | align="center" valign="bottom"|<span style="color: #000000;">3</span> | align="center" valign="bottom"|user_defined/EN_EXP | align="center" valign="bottom"|EXP_36 | align="center" valign="bottom"|<span style="color: #000000;">21</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">37</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">5</span> | align="center" valign="bottom"|<span style="color: #000000;">37</span> | align="center" valign="bottom"|<span style="color: #000000;">LED_RED</span> | align="center" valign="bottom"|LED_RED | align="center" valign="bottom"|<span style="color: #000000;">22</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">38</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">6</span> | align="center" valign="bottom"|<span style="color: #000000;">38</span> | align="center" valign="bottom"|<span style="color: #000000;">USER_BTN</span> | align="center" valign="bottom"|PIN_BUTTON1 | align="center" valign="bottom"|<span style="color: #000000;">23</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">39</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">9</span> | align="center" valign="bottom"|<span style="color: #000000;">9</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined</span> | align="center" valign="bottom"|EXP_39 | align="center" valign="bottom"|<span style="color: #000000;">24</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">40</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">10</span> | align="center" valign="bottom"|<span style="color: #000000;">10</span> | align="center" valign="bottom"|<span style="color: #000000;">user_defined</span> | align="center" valign="bottom"|EXP_40 | align="center" valign="bottom"|<span style="color: #000000;">25</span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">On Board QSPI FLASH</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">QSPI pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">6</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">19</span> | align="center" valign="bottom"|<span style="color: #000000;">19</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_CLK</span> | align="center" valign="bottom"|PIN_QSPI_SCK | align="center" valign="bottom"|<span style="color: #000000;">26</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">17</span> | align="center" valign="bottom"|<span style="color: #000000;">17</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_CS</span> | align="center" valign="bottom"|PIN_QSPI_CS | align="center" valign="bottom"|<span style="color: #000000;">27</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">5</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">20</span> | align="center" valign="bottom"|<span style="color: #000000;">20</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_IO0/FLASH_MOSI</span> | align="center" valign="bottom"|PIN_QSPI_IO0 | align="center" valign="bottom"|<span style="color: #000000;">28</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">2</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">21</span> | align="center" valign="bottom"|<span style="color: #000000;">21</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_IO1/FLASH_MISO</span> | align="center" valign="bottom"|PIN_QSPI_IO1 | align="center" valign="bottom"|<span style="color: #000000;">29</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">3</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">22</span> | align="center" valign="bottom"|<span style="color: #000000;">22</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_IO2</span> | align="center" valign="bottom"|PIN_QSPI_IO2 | align="center" valign="bottom"|<span style="color: #000000;">30</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">7</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">23</span> | align="center" valign="bottom"|<span style="color: #000000;">23</span> | align="center" valign="bottom"|<span style="color: #000000;">FLASH_IO3</span> | align="center" valign="bottom"|PIN_QSPI_IO3 | align="center" valign="bottom"|<span style="color: #000000;">31</span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">On Board SD CARD READER</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">SD pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">5</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">0</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">7</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">7</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_SPI_SCLK</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">PIN_SPI1_SCK</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">32</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">2</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">0</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">5</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">5</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_SPI_CS</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SS1</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">33</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">3</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">0</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">27</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">27</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_SPI_MOSI</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">PIN_SPI1_MOSI</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">34</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">7</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">0</span> | align="center" valign="bottom"|<span style="font-family: Calibri;">26</span> | align="center" valign="bottom"|<span style="font-family: Calibri;">26</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_SPI_MISO</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">PIN_SPI1_MISO</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">35</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">TPS</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">1</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">15</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">47</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_EN_PIN</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SDCARD_EN_PIN</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">36</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000; font-family: Calibri;">9</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">1</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">14</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">46</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SD_DETECT_PIN</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">SDCARD_DETECT_PIN</span> | align="center" valign="bottom"|<span style="color: #000000; font-family: Calibri;">37</span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">Xlbee pins</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">Xlbee pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">U302(3)</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">3</span> | align="center" valign="bottom"|<span style="color: #000000;">35</span> | align="center" valign="bottom"|<span style="color: #000000;">MCU_XLB_EN</span> | align="center" valign="bottom"|XLB_EN | align="center" valign="bottom"|<span style="color: #000000;">38</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">5</span> | align="center" valign="bottom"|<span style="color: #000000;">1</span> | align="center" valign="bottom"|<span style="color: #000000;">2</span> | align="center" valign="bottom"|<span style="color: #000000;">34</span> | align="center" valign="bottom"|<span style="color: #000000;">!XLB_RST!</span> | align="center" valign="bottom"|XLB_RST | align="center" valign="bottom"|<span style="color: #000000;">39</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">37</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">31</span> | align="center" valign="bottom"|<span style="color: #000000;">31</span> | align="center" valign="bottom"|<span style="color: #000000;">SPI0_CS0</span> | align="center" valign="bottom"|SS | align="center" valign="bottom"|<span style="color: #000000;">40</span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">Analog Pins</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|<span style="color: #000000;">Analog pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|<span style="color: #000000;">VBAT_MES</span> | align="center" valign="bottom"|<span style="color: #000000;">0</span> | align="center" valign="bottom"|<span style="color: #000000;">24</span> | align="center" valign="bottom"|<span style="color: #000000;">24</span> | align="center" valign="bottom"|<span style="color: #000000;">AIN7</span> | align="center" valign="bottom"|PIN_A0 | align="center" valign="bottom"|<span style="color: #000000;">41</span> |- | colspan="7" align="center" valign="middle" bgcolor="#FFFF00" height="17"|<span style="color: #000000;">Output Voltage Enablers</span> |- | align="center" valign="bottom" bgcolor="#729FCF" height="17"|TPS pin | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">port</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">pin</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">identifier</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">rôle</span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;"> </span> | align="center" valign="bottom" bgcolor="#729FCF"|<span style="color: #000000;">PinMap Pos</span> |- | align="center" valign="bottom" height="17"|U304(3) | align="center" valign="bottom"|1 | align="center" valign="bottom"|12 | align="center" valign="bottom"|<span style="color: #000000;">44</span> | align="center" valign="bottom"|3V3_SW_EN | align="center" valign="bottom"|SW_3V3_EN | align="center" valign="bottom"|42 |- | align="center" valign="bottom" height="17"|U305(3) | align="center" valign="bottom"|1 | align="center" valign="bottom"|4 | align="center" valign="bottom"|<span style="color: #000000;">36</span> | align="center" valign="bottom"|VDD_SW_EN | align="center" valign="bottom"|SW_VDD_EN | align="center" valign="bottom"|43 |} Then you can use it and declare it as an INPUT or an OUTPUT using pinMode() function. If it is an output you can set its state using digitalWrite() function. For example we want to activate 3V3_SW, it is a power-rail that is commanded by the GPIO : 3V3_SW_EN. The corresponding arduino name is : SW_3V3_EN. In our arduino sketch we can write : <sxh cpp> pinMode(SW_3V3_EN, OUTPUT); digitalWrite(SW_3V3_EN, HIGH); </sxh> This will configure SW_3V3_EN as an output and set its state to high=1. So it will activate our power rail 3V3_SW. products/flipper/arduino_use_gpio.txt Last modified: 2021/04/06 08:02by manu