Community

[Meadow] CreateSpiBus fails with error: ioctl SPIBits failed OperationNotPermitted

Got my Meadow dev kit (March 2020) and I am running through the sample code for the ST7789. I am currently running Beta 3.8.

The following error occurs trying to do Device.CreateSpiBus: ioctl SPIBits failed OperationNotPermitted. below are the two lines of code.

   var config = new SpiClockConfiguration(6000, SpiClockConfiguration.Mode.Mode3);
   var spiBus = Device.CreateSpiBus(Device.Pins.SCK, Device.Pins.MOSI, Device.Pins.MISO, config);

Any help would be appreciated.