sparkfun / SparkFun_ICM-20948_ArduinoLibrary

Arduino support for ICM_20948 w/ portable C backbone
Other
168 stars 72 forks source link

Porting to Linux Raspberry Pi 3 #115

Closed pbenaim closed 1 year ago

pbenaim commented 1 year ago

Hello every body,

I would like use this very nice lib on one Raspberry Pi 3 in SPI in C++

On RPI3 we have wiringPi and wiringPiSPI to access to SPI bus, but I don't know really how convert this Arduino lib into RPI3.

Maybe somebody have already done that and can share this work.

thanks a lot for your help.

pbenaim commented 1 year ago

I done :-)

I removed I2C, because is too long if you want use the DMP (ICM_20948_USE_DMP), it's my case. So only in SPI.

Debugs funtions remplaced with printf...

If somebody, want the modifications, I can send it, by the way that you want. You must reopen the thread...

Thanks again to SparkFun, to publish this library.

apnogueira commented 1 year ago

Hi @pbenaim ! I am currently trying to run this library in a Raspberry Pi 4 using SPI. Exactly like you. Could you share your modifications?

pbenaim commented 1 year ago

Yes, I will do this week-end

apnogueira commented 1 year ago

Thanks in advance!

pbenaim commented 1 year ago

Hello André, 

I am sorry and sad at the same time. 

The mother board of my computer died this week end 😢

I have ordered a new one, so no computer for the moment. 😭 I must wait for the delivery... 

So you must wait too... 

But, like I said on github if you replace Debugs funtions with printf, normally all will be fine. 

Maybe you need to remove all I2c references. 

Sorry again. 

I will be back to you when my computer will be alive again... 

Best regards 

Philippe 

Sent from Nine


De : André Nogueira @.***> Envoyé : dimanche 2 juillet 2023 18:04 À : sparkfun/SparkFun_ICM-20948_ArduinoLibrary Cc: PHILIPPE BENAIM; Mention Objet : Re: [sparkfun/SparkFun_ICM-20948_ArduinoLibrary] Porting to Linux Raspberry Pi 3 (Issue #115)

Thanks in advance! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>