GFXcanvasSerialDemo.h 883 B

12345678910111213141516171819202122232425
  1. #ifndef __GFXcanvasSerialDemo__
  2. #define __GFXcanvasSerialDemo__
  3. #include <Adafruit_GFX.h>
  4. /**********************************************************************/
  5. /*!
  6. @brief Demonstrates using the GFXconvas classes as the backing store
  7. for a device driver.
  8. */
  9. /**********************************************************************/
  10. class GFXcanvasSerialDemo : public GFXcanvas8 {
  11. public:
  12. GFXcanvasSerialDemo(uint16_t w, uint16_t h);
  13. /**********************************************************************/
  14. /*!
  15. @brief Prints the current contents of the canvas to Serial
  16. @param rotated true to print according to the current GFX rotation,
  17. false to print to the native rotation of the canvas (or unrotated).
  18. */
  19. /**********************************************************************/
  20. void print(bool rotated);
  21. };
  22. #endif // __GFXcanvasSerialDemo__