Author Topic: [SOLVED] SPI problems  (Read 400 times)

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: SPI problems
« on: August 03, 2016, 10:29:35 am »
Could you share your code with us? Here is a test I just ran and things seem to be working.

Code: [Select]
Class test
    Shared dev As Spi
    Shared Event Boot()
        dev = Spi.Create(1000000, 0, Pin.Pin2, Pin.Pin3, Pin.Pin4, Pin.Pin5)
    End Event
   
    Shared Event Try() RaiseEvent Every 100 milliSeconds
        Dim payload As ListOfByte = New ListOfByte
        payload.Add(0)
        payload.Add(1)
        payload.Add(2)
        dev.Transfer(payload)
    End Event
   
End Class

I did discover an issue with the mode mapping which we will fix in the next revision.