Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Last updated: Friday 13 November 2026 @ 17:29:40
BeagleBone Black · Revision D · Rust

Building the `bbb_io` Rust crate

Revisit GPIO, ADC and PWM on the BeagleBone Black using native Rust and the standard library.

C-to-Rust progressionBBB hardwareLibrary crate
Practical Checklist
Chapter checklist 0 / 1 completed

In this sequence, you will implement Rust equivalents of the GPIO, ADC and PWM functionality developed in the C libioctrl library.

A Rust crate is a compilation unit that produces a library or an executable. This sequence develops a reusable bbb_io library crate and several executable examples.

  1. Install Rust on the BeagleBone Black:

  2. If you have installed rust on the BeagleBone, you can now move on to:

  3. Then we move on to the GPIO implementation

  4. Next is the ADC functionality

  5. This chapter deals with the PWM capabilities for BBB with rust

  6. Finally, combine ADC and PWM functionality in one programme: