how to understand the 40HAT pin mapping configuration

It's so confusing,
I was trying to set a gpio pin to output high through c++ code using the mraa library. and I had so much trouble finding the right pin number to use to set the good pin.
the pin number has 2 gpio number asssociated.
in my BIOS, the pin is GPIO15 (pin 37)
and setting it to output high really worked. but with the mraa library I had to do
mraa::Gpio gpio_1(26, true, true); gpio_1.dir(mraa::DIR_OUT); gpio_1.write(1);
for make it working.
maybe the third argument to gpio at true makes the numbering different, but puting false did that no pins where accepted so I had no choice.
In the document of my up4000:
the pin is numbered like in the BIOS, while the wiki schema:
uses the gpio26 number instead, the only constant being the pin number 37.
so I want to set the GPIO19 (pin 16)
in my BIOS to output because my SPI_CLK isn't working if I don't do that. will this work if I use mraa with gpio23 instead because the wiki says so.
why is this so confusing. This other wiki page: https://github.com/up-board/up-community/wiki/Pinout even has different numbering
Answers
-
Hi Sir
Please take this figure as the main.
Best Regards,
Harry Chiu
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 185 Welcome Developers!
- 55 Unboxing & Project Sharing
- 49 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral