Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

m4 with spi library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

m4 with spi library

by lavericklavericklaverick on Mon Jun 22, 2020 6:53 pm

hi, im using the adafruit adxl343 libary for arduino, i was using it on a feather m0 and have switched to an m4 itsybitsy, wiring exactly the same, however now the sensor isnt found by the code.

i noticed that the pin setup is different for m4 - do i need to go and change this in one of the libraries or is this dealt with by the compiler?

many thanks

lavericklavericklaverick
 
Posts: 19
Joined: Mon May 06, 2019 6:58 pm

Re: m4 with spi library

by lavericklavericklaverick on Tue Jun 23, 2020 3:52 am

Solved: me, just being a dummy (again)

Didnt realise that you could actually address the pins as miso, mosi and sck in the actual code - i thought you had to use a pin number.

all solved now. this chip is so fast! :)

lavericklavericklaverick
 
Posts: 19
Joined: Mon May 06, 2019 6:58 pm

Please be positive and constructive with your questions and comments.