SPI arduino not working

Discussion in 'UDOO NEO' started by BanjoIsland, May 13, 2016.

  1. BanjoIsland

    BanjoIsland New Member

    Joined:
    May 7, 2016
    Messages:
    7
    Likes Received:
    2
    Hi,
    I have the latest UDOObuntu 2 RC2, but I'm having problems trying to compile anything that uses the SPI library in arduino sketches. It looks like beginTransaction() and endTransaction() functions don't exist:
    https://www.arduino.cc/en/Reference/SPIbeginTransaction

    Is there an easy way to add these functions so that the neo can compile arduino libraries that use these functions?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    The Neo uses the SPI library based on the 1.0.x IDE. beginTransaction() and endTransaction() functions were not available then.
    I tried to use the 1.6.5 SPI library (with beginTransaction() and endTransaction()) but it fails to compile.

    I think it is easier to rewrite the sketches so it does not use those functions. The SPI examples in the IDE don't use them also so perhaps you can alter your sketches too.
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Any update here?
     

Share This Page