Simple single-color 8x8x8 LED Cube with AVRs
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.

cube.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * cube.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. /*
  22. * Call init(). A picture you set a new picture it will be displayed.
  23. * After the last part is applied to the latches, isFinished() will change
  24. * to 1. Now you can place a new picture here.
  25. */
  26. extern void initCube(void);
  27. // Copies the data in img into its own buffer
  28. extern void setImage(uint8_t *img); // img[64]
  29. extern uint8_t isFinished(void);
  30. extern void close(void);
  31. extern void fillBuffer(uint8_t val);
  32. extern uint32_t getTriggerCount(void);