Can you use sam3x8e on a Raspberry Pi or an Odroid

#1

Referring to another discussion Use Rust in Arduino

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?

0 Likes

#2

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.

0 Likes