#raspberry-pi #embedded-hal #peripheral #spi #i2c #gpio #pwm

rpi_embedded

Interface for the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals. Forked from RPPAL

8 releases

0.1.0 Aug 11, 2020
0.0.7 Aug 5, 2020
0.0.5 Jul 29, 2020

#917 in Embedded development

Download history 37/week @ 2023-11-20 26/week @ 2023-11-27 15/week @ 2023-12-04 21/week @ 2023-12-11 32/week @ 2023-12-18 15/week @ 2023-12-25 5/week @ 2024-01-01 48/week @ 2024-01-08 22/week @ 2024-01-15 9/week @ 2024-01-29 22/week @ 2024-02-05 40/week @ 2024-02-12 46/week @ 2024-02-19 67/week @ 2024-02-26 51/week @ 2024-03-04

205 downloads per month
Used in fewer than 17 crates

MIT license

325KB
5K SLoC

rpi_embedded

A Rust library that provides access to the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals. This library has documentation here https://docs.rs/rpi_embedded/


lib.rs:

rpi_embedded is a fork of the RPPAL library. This fork is made to increase the usability of the RPPAL library. Spesificaly making it more user friendly and beginer friendly rpi_embedded provides access to the Raspberry Pi's GPIO, I2C, PWM, SPI, UART and Bluetooth peripherals. There is also a ADXL345 and pwm servo library included for ease of use. RPPAL also offers support for USB to serial adapters. The library can be used in conjunction with a variety of platform-agnostic drivers through its embedded-hal trait implementations by enabling the optional hal feature. However the new functions included in rpi_embedded might fail.

rpi_embedded requires Raspbian or any similar, recent, Linux distribution. rpie_embedded has only been tested on Rpi Zero W but RPPAL is compatible with the Raspberry Pi A, A+, B, B+, 2B, 3A+, 3B, 3B+, 4B, CM, CM 3, CM 3+, Zero and Zero W. In theory it should all work except for bluetooth maybe.

Note that this fork is still in production, and might change massivly from version to version

Dependencies