SPI.h header file seems not to work properly

Discussion in 'TinkerCAD' started by Kirill.1984, Aug 27, 2023.

  1. Kirill.1984

    Kirill.1984

    Joined:
    Aug 27, 2023
    Messages:
    2
    Likes Received:
    0
    Hello there. Would anyone, please, show a working SPI.h example? I need a simple way to pass data from Master to Slave using two Arduinos UNO. Here is an example which seems not to work, though looks quite logical: https://www.tinkercad.com/things/kv...e=20IJDUceTc-w_lzjyn67It0-57UothwcvIWnC6nlnG8

    Program stops after SPI.transfer(c); command.
    This seems to be an issue with other sketches too.

    What actually may be wrong? Is SPI.h not supported anymore?
     
    Kirill.1984, Aug 27, 2023
    #1
  2. Kirill.1984

    Kirill.1984

    Joined:
    Aug 27, 2023
    Messages:
    2
    Likes Received:
    0
    I tried the same code on Arduino IDE and it works just fine, but I am still curious what's been wrong here.
     
    Kirill.1984, Aug 27, 2023
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.