#lego #first #ev3 #fll #ev3dev


Movement and ui apis for lego ev3 robots intended for use in the FIRST Lego League competition

5 releases

0.1.4 May 7, 2023
0.1.3 May 2, 2023
0.1.2 May 2, 2023
0.1.1 Mar 28, 2023
0.1.0 Mar 28, 2023

#105 in Robotics

42 downloads per month


1.5K SLoC

Cross Compiling

To cross compile, the rust tool chain for armv5te-musl needs to be installed

rustup target add armv5te-unknown-linux-musleabi

To tell rust to compile for armv5te-musl by default and to set the correct linker include the following in .cargo/config.toml

target = "armv5te-unknown-linux-musleabi"

linker = "rust-lld"

See https://crates.io/crates/ev3dev-lang-rust for information about cross compiling your code

Reducing Binary Size

Enabling global lto causes more aggressive dead code elimination

Setting strip to true removes debugging information from the binary

lto = true
strip = true


~240K SLoC