ESPDMX.h 698 B

1234567891011121314151617181920212223242526272829303132
  1. // - - - - -
  2. // ESPDMX - A Arduino library for sending and receiving DMX using the builtin serial hardware port.
  3. // ESPDMX.cpp: Library implementation file
  4. //
  5. // Copyright (C) 2015 Rick <ricardogg95@gmail.com>
  6. // This work is licensed under a GNU style license.
  7. //
  8. // Last change: Marcel Seerig <https://github.com/mseerig>
  9. //
  10. // Documentation and samples are available at https://github.com/Rickgg/ESP-Dmx
  11. // - - - - -
  12. #include <inttypes.h>
  13. #ifndef ESPDMX_h
  14. #define ESPDMX_h
  15. // ---- Methods ----
  16. class DMXESPSerial {
  17. public:
  18. void init();
  19. void init(int MaxChan, int dmxPin);
  20. uint8_t read(int Channel);
  21. void write(int channel, uint8_t value);
  22. void update();
  23. void end();
  24. };
  25. #endif