Can you use sam3x8e on a Raspberry Pi or an Odroid

Referring to another discussion Use Rust in Arduino - #7 by Joe232

I get it that sam3x8e = "0.1.1" is made for the Ardunio, but is it cross compatible with the Raspberry Pi and/or the Odroid?

No, this crate is designed to control the hardware directly on the chip used in the Arduino Due. On a Linux based system like a Pi or Odroid, besides being a different chip, you'd want to use the hardware drivers in Linux instead of talking to the hardware registers directly.

If you want to write code that might be able to be used on both bare-metal microcontrollers and embedded Linux, check out the embedded-hal crate. linux-embedded-hal implements these traits on top of Linux drivers.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.