syact 0.12.1-alpha

A library to control motors (mainly stepper motors) and components, read data from sensors and more
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{device::pin::{UniOutPin, UniInPin}, Setup};

pub type Switch = sylo::Switch<UniInPin>;
pub type Relay = sylo::Relay<UniOutPin>;

impl Setup for Relay {
    fn setup(&mut self) -> Result<(), crate::Error> {
        self.pin_mut().setup()
    }
}