kriswiner / IIS3DWB

Arduino sketches for ST's IIS3DWB vibration analyzer accelerometer
22 stars 12 forks source link

Error in code IIS3DWB_Dragonfly.ino #4

Open felipecookh opened 3 years ago

felipecookh commented 3 years ago

Hi Kris, thanks for your code for this sensor. I'm using it with an Arduino Portenta.

To give back a little of help, I think in IIS3DWB_Dragonfly.ino, line 104, it should be digitalWrite(CSPIN, HIGH); instead of pinMode(CSPIN, HIGH);

My code didn't work until I did that change.

https://github.com/kriswiner/IIS3DWB/blob/295b0746f01997527017ac8ee013ce50957104d1/IIS3DWB_Basic_Dragonfly/IIS3DWB_Dragonfly.ino#L104

Regards,

kriswiner commented 3 years ago

Yes, you are correct. This is a no-op on my MCU but this should be digitalWrite, not pinMode again. Thanks!

On Wed, Aug 18, 2021 at 7:27 AM felipecookh @.***> wrote:

Hi Kris, thanks for your code for this sensor. I'm using it with an Arduino Portenta.

To give back a little of help, I think in IIS3DWB_Dragonfly.ino, line 104, it should be digitalWrite(CSPIN, HIGH); instead of pinMode(CSPIN, HIGH);

My code didn't work until I did that change.

https://github.com/kriswiner/IIS3DWB/blob/295b0746f01997527017ac8ee013ce50957104d1/IIS3DWB_Basic_Dragonfly/IIS3DWB_Dragonfly.ino#L104

Regards,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/IIS3DWB/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTDLKW6IVE4FVQVLD53FLTT5O7MRANCNFSM5CMFNUWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .