Simple single-color 8x8x8 LED Cube with AVRs
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

memLayer.h 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * memLayer.h
  3. *
  4. * Copyright 2012 Thomas Buck <xythobuz@me.com>
  5. *
  6. * This file is part of LED-Cube.
  7. *
  8. * LED-Cube is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * LED-Cube is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with LED-Cube. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. // Free after usage!
  22. uint8_t *getFrame(uint16_t frameNumber);
  23. // 65 bytes framedata, data and duration...
  24. void setFrame(uint16_t frameNumber, uint8_t *frameData);
  25. void setDuration(uint16_t frameNumber, uint8_t duration);
  26. void clearMem(void);
  27. uint16_t getAnimationCount(void);
  28. void setAnimationCount(uint16_t c);
  29. // address 0 - 29
  30. void setGeneralPurposeByte(uint8_t address, uint8_t data);
  31. uint8_t getGeneralPurposeByte(uint8_t address);