Page 290

The number of SPI buses a Raspberry Pi has depends on its model. The PiZero and Pi 3 have three SPI devices, but only SP0 and SP1 are available on the GPIO connector:

change SP0 and SP1 to SPI0 and SPI1 

The number of SPI buses a Raspberry Pi has depends on its model. The PiZero and Pi 3 have three SPI devices, but only SPI0 and SPI1 are available on the GPIO connector:

 

Page 298

First connect pin 19 to pin 20 using a jumper wire and start a new NetBeans project. The program is very simple. First we initialize the library and the SPI bus:

change 20 to 21

First connect pin 19 to pin 21 using a jumper wire and start a new NetBeans project. The program is very simple. First we initialize the library and the SPI bus: