Wallacoloo / printipi

3d printing directly through the Raspberry Pi's GPIO pins
MIT License
141 stars 43 forks source link

Replace `GpioPinIdType OutputEvent::pinId()` with `IoPin OutputEvent::pin()` #60

Closed Wallacoloo closed 9 years ago

Wallacoloo commented 9 years ago

That is, instead of returning just the raw pin number, OutputEvent should store all the information about a pin, including its inversion states, etc.

This makes it so only the HardwareScheduler has to worry about pin inversions, instead of higher-level classes like A4988 stepper drivers. It also allows us to completely remove the GpioPinIdType typedef (see #51).

Wallacoloo commented 9 years ago

Implemented in devel.