LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Data, SCK, and Latch Pins for SPI init

Does anyone know if it is possible to change the pin outs for the SPI init? The default are:

Arduino Pin 10 - SS - Latch Pin

Arduino Pin 11 - MOSI - Serial In

Arduino Pin 12 - MISO - Data Out

Arduino Pin 13 - SCK - Clock Pin

I already have some hard wired stuff on 11 and 12 and really don't want to move it.  I would like to be able to assign the pin numbers myself.  Anyone have any experience with this?

Thanks,

Bill

0 Kudos
Message 1 of 3
(4,469 Views)

I don't think there is a function to do this but you should be able to edit the pin numbers in pins_arduino.h

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 2 of 3
(3,437 Views)

Hi,

Am trying to give a answer for your query,

For previously defined pins, we can't change those IO configurations as we can becz those pin configuration functions already defined(specific function ex:as SEGMENT for LCD) for MCU, we can use other port pins ex:- PF.0,PF.1,PF.2 these bits of F port are used, you can use PF.3 to PF.15(defined pins in schematic).

 

Thanks 

with regards

Vidya yadav

Embedded engineer.  

0 Kudos
Message 3 of 3
(2,576 Views)