Pin numbers of the board are different than in my other A. boards. And if I look at the pinout diagram number are familiar. If I want use for example digitalWrite() command, what set of names names I can use. Or are all right.
Use the names written on the bottom of the board.
These are the ones shown in the striped orange labels in the pinout diagram. You can also use the white and orange striped names for the analog pins. The other pin names in the non-striped labels on the pinout diagram can not be used with standard Arduino API functions like digitalWrite()
OK, thanks. One more question: Just to be sure, I need SPI bus, compiler knows which pins to use.
I suspect you mean this pinout diagram.
You can just use the numbers that are market with a D before the digits.
Yes, that's the one.
LMI1:
OK, thanks. One more question: Just to be sure, I need SPI bus, compiler knows which pins to use.
The pins are defined in the variant.h file. You can find it here.
C:\Users\UserName\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\variants\nano_33_iot
There are two interfaces SPI and SPI1.
Klaus_K:
The pins are defined in the variant.h file. You can find it here.C:\Users\UserName\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.6\variants\nano_33_iot
There are two interfaces SPI and SPI1.
Good to know. But pin map shows only one bus.
If I may say, the pin map is a bit unclear. It would help if there were text telling where each column belongs. Like Arduino pin, ESP32 pin, ARM pin or what ever the context is.
LMI1:
If I may say, the pin map is a bit unclear. It would help if there were text telling where each column belongs. Like Arduino pin, ESP32 pin, ARM pin or what ever the context is.
The columns do not mean anything (maybe a bit sorting and making the picture look nice). Each row shows you the possible function each pin can have. You can see the pins connection in the schematic. All of them are connected to the SAMD21. Some (SDA, SCL) might also be connected to the NINA module.
LMI1:
Good to know. But pin map shows only one bus.
The second SPI is connected to the NINA module and not to the external connector. The SAMD21 chip has more pins than the Nano pcb.