Frästisch mit elektronischer Höhenverstellung mittels Schrittmotoren.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WLS.cpp 461B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Implementation of WLS.h
  3. *
  4. * Erstellt: 05.01.2021
  5. * Autor: Flo Smilari
  6. */
  7. #include "WLS.h"
  8. WLS::WLS(int pin) :
  9. WLS(pin, false) {
  10. }
  11. WLS::WLS(int pin, bool _inverted) :
  12. ezButton(pin) {
  13. inverted = _inverted;
  14. }
  15. bool WLS::isPlugged(void) {
  16. if (inverted)
  17. return isReleased();
  18. else
  19. return isPressed();
  20. }
  21. bool WLS::isUnplugged(void) {
  22. if (inverted)
  23. return isPressed();
  24. else
  25. return isReleased();
  26. }