Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
golemparts committed Oct 18, 2023
1 parent a2983f4 commit 1a443c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.15.0 (TBD)
## 0.15.0 (October 18, 2023)

* Add support for Raspberry Pi 5 (thanks @ukscone for all the testing!).
* **Gpio**: (Breaking change) Rename `PullUpDown` enum to `Bias`, and `set_pullupdown` to `set_bias`.
Expand Down
4 changes: 2 additions & 2 deletions src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! with slave devices. The other two buses are used internally as an HDMI
//! interface, and for HAT identification.
//!
//! On the Raspberry Pi 4 B and 400, three additional I2C buses are available,
//! On the Raspberry Pi 4 B, 400 and 5, three additional I2C buses are available,
//! depending on your configuration, as explained below.
//!
//! ### I2C0 / I2C1
Expand Down Expand Up @@ -249,7 +249,7 @@ impl I2c {
/// bus that's bound to physical pins 3 (SDA) and 5 (SCL). On the Raspberry
/// Pi B Rev 1, those pins are tied to bus 0. On every other Raspberry
/// Pi model, they're connected to bus 1. Additional I2C buses are available
/// on the Raspberry Pi 4 B and 400.
/// on the Raspberry Pi 4 B, 400 and 5.
///
/// More information on configuring the I2C buses can be found [here].
///
Expand Down
2 changes: 1 addition & 1 deletion src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! The Raspberry Pi's GPIO header exposes several SPI buses. SPI0 is available
//! on all Raspberry Pi models. SPI1 is available on models with a 40-pin
//! header. SPI2 is only available on the Compute and Compute 3. SPI3 through SPI6
//! are only available on the Raspberry Pi 4 B and 400.
//! are only available on the Raspberry Pi 4 B, 400 and 5.
//!
//! ### SPI0
//!
Expand Down
4 changes: 2 additions & 2 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ pub enum Model {
RaspberryPi3BPlus,
RaspberryPi4B,
RaspberryPi400,
RaspberryPi5,
RaspberryPiComputeModule,
RaspberryPiComputeModule3,
RaspberryPiComputeModule3Plus,
Expand All @@ -87,7 +88,6 @@ pub enum Model {
RaspberryPiZero,
RaspberryPiZeroW,
RaspberryPiZero2W,
RaspberryPi5,
}

impl fmt::Display for Model {
Expand All @@ -104,6 +104,7 @@ impl fmt::Display for Model {
Model::RaspberryPi3APlus => write!(f, "Raspberry Pi 3 A+"),
Model::RaspberryPi4B => write!(f, "Raspberry Pi 4 B"),
Model::RaspberryPi400 => write!(f, "Raspberry Pi 400"),
Model::RaspberryPi5 => write!(f, "Raspberry Pi 5"),
Model::RaspberryPiComputeModule => write!(f, "Raspberry Pi Compute Module"),
Model::RaspberryPiComputeModule3 => write!(f, "Raspberry Pi Compute Module 3"),
Model::RaspberryPiComputeModule3Plus => write!(f, "Raspberry Pi Compute Module 3+"),
Expand All @@ -112,7 +113,6 @@ impl fmt::Display for Model {
Model::RaspberryPiZero => write!(f, "Raspberry Pi Zero"),
Model::RaspberryPiZeroW => write!(f, "Raspberry Pi Zero W"),
Model::RaspberryPiZero2W => write!(f, "Raspberry Pi Zero 2 W"),
Model::RaspberryPi5 => write!(f, "Raspberry Pi 5"),
}
}
}
Expand Down

0 comments on commit 1a443c4

Please sign in to comment.