From e3c4b269b26a79ee6335060b540578558e47671a Mon Sep 17 00:00:00 2001 From: David O'Connor Date: Sun, 5 May 2024 13:35:36 -0400 Subject: [PATCH] Pin clone type --- src/gpio.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpio.rs b/src/gpio.rs index a6dcd9d..e63265d 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -478,6 +478,7 @@ macro_rules! set_exti_g0 { } } +#[derive(Clone)] /// Represents a single GPIO pin. Allows configuration, and reading/setting state. pub struct Pin { /// The GPIO Port letter. Eg A, B, C.