feat(trait): rename trait StaticPin -> StaticPinOps
This commit is contained in:
parent
6e54b54895
commit
0a668af6e4
|
@ -16,7 +16,7 @@ pub struct Neopixel<P> {
|
|||
|
||||
impl<P> Neopixel<P>
|
||||
where
|
||||
P: PinOps + StaticPin,
|
||||
P: PinOps + StaticPinOps,
|
||||
{
|
||||
#[inline]
|
||||
pub const fn new(_pin: Pin<Output, P>) -> Self {
|
||||
|
@ -27,7 +27,7 @@ where
|
|||
|
||||
impl<P> SmartLedsWrite for Neopixel<P>
|
||||
where
|
||||
P: PinOps + StaticPin,
|
||||
P: PinOps + StaticPinOps,
|
||||
{
|
||||
type Error = ();
|
||||
type Color = smart_leds::RGB<u8>;
|
||||
|
@ -50,7 +50,6 @@ where
|
|||
|
||||
impl<P> Neopixel<P>
|
||||
where
|
||||
P: PinOps + StaticPin,
|
||||
{
|
||||
fn priv_write(&self, data: u8) {
|
||||
let (mut count, mut data, port_data, pin_data) = (8, data, P::read(), 1 << P::PIN_NUM);
|
||||
|
|
Loading…
Reference in New Issue