PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

преди 3 години
123456789101112131415161718192021222324252627
  1. /**
  2. * DmxSimple - A simple interface to DMX.
  3. *
  4. * Copyright (c) 2008-2009 Peter Knight, Tinker.it! All rights reserved.
  5. */
  6. #ifndef DmxSimple_h
  7. #define DmxSimple_h
  8. #include <inttypes.h>
  9. #if RAMEND <= 0x4FF
  10. #define DMX_SIZE 128
  11. #else
  12. #define DMX_SIZE 512
  13. #endif
  14. class DmxSimpleClass
  15. {
  16. public:
  17. void maxChannel(int);
  18. void write(int, uint8_t);
  19. void usePin(uint8_t);
  20. };
  21. extern DmxSimpleClass DmxSimple;
  22. #endif