https://github.com/friendlyarm/WiringNP
https://github.com/friendlyarm/RPi.GPIO_NP
〇 使えたもの (Armbian_21.08.1_Nanopineo_bullseye_current_5.10.60.img.xzにて)
cd /usr/local/src sudo git clone https://github.com/wertyzp/WiringNP.git cd WiringNP sudo nano wiringPi/wiringPiSPI.c// 72行目変更 int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ↓ int wiringPiSPIDataRW (int channel, unsigned char *data, unsigned int len)sudo nano wiringPi/wiringPiSPI.h// 30行目変更 int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ; ↓ int wiringPiSPIDataRW (int channel, unsigned char *data, unsigned int len) ;sudo chmod 755 build sudo ./build // SPI操作を可能にする設定 sudo nano /boot/armbianEnv.txtsudo armbian-config -> System -> Hardware -> [*] spi-spidev < Save > をクリック後、 < Back > をクリックして、< Reboot >するoverlays=spi-sipdev←「sudo armbian-config」で行うため不要 param_spidev_spi_bus=0 param_spidev_max_freq=100000000