sketch.ino 600 B

12345678910111213141516171819202122232425
  1. #include <EEPROM.h>
  2. #include <SPI.h>
  3. #include <GD2.h>
  4. void setup() //' a{
  5. {
  6. Serial.begin(115200); // JCB
  7. GD.begin();
  8. GD.cmd_memset(0, 0, 480UL * 272UL); // clear the bitmap
  9. GD.Clear(); // draw the bitmap
  10. GD.BitmapLayout(L8, 480, 272);
  11. GD.BitmapSize(NEAREST, BORDER, BORDER, 480, 272);
  12. GD.Begin(BITMAPS);
  13. GD.Vertex2ii(0, 0);
  14. GD.swap();
  15. GD.cmd_sketch(0, 0, 480, 272, 0, L8); // start sketching
  16. GD.finish(); // flush all commands
  17. }
  18. void loop() { } //' }a
  19. /* JCB{
  20. delay(60000);
  21. GD.cmd_stop();
  22. GD.dumpscreen();
  23. } }JCB */