PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

28 行
426B

  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