feat(trait): rename trait StaticPin -> StaticPinOps

This commit is contained in:
doryan 2025-04-22 22:52:11 +04:00
parent 6e54b54895
commit 0a668af6e4

View File

@ -16,7 +16,7 @@ pub struct Neopixel<P> {
impl<P> Neopixel<P> impl<P> Neopixel<P>
where where
P: PinOps + StaticPin, P: PinOps + StaticPinOps,
{ {
#[inline] #[inline]
pub const fn new(_pin: Pin<Output, P>) -> Self { pub const fn new(_pin: Pin<Output, P>) -> Self {
@ -27,7 +27,7 @@ where
impl<P> SmartLedsWrite for Neopixel<P> impl<P> SmartLedsWrite for Neopixel<P>
where where
P: PinOps + StaticPin, P: PinOps + StaticPinOps,
{ {
type Error = (); type Error = ();
type Color = smart_leds::RGB<u8>; type Color = smart_leds::RGB<u8>;
@ -50,7 +50,6 @@ where
impl<P> Neopixel<P> impl<P> Neopixel<P>
where where
P: PinOps + StaticPin,
{ {
fn priv_write(&self, data: u8) { fn priv_write(&self, data: u8) {
let (mut count, mut data, port_data, pin_data) = (8, data, P::read(), 1 << P::PIN_NUM); let (mut count, mut data, port_data, pin_data) = (8, data, P::read(), 1 << P::PIN_NUM);