jpeg2.ino 456 B

1234567891011121314151617181920212223242526
  1. #include <EEPROM.h>
  2. #include <SPI.h>
  3. #include <GD2.h>
  4. void setup() //' A{
  5. {
  6. Serial.begin(1000000); // JCB
  7. GD.begin();
  8. GD.BitmapHandle(0);
  9. GD.cmd_loadimage(0, 0);
  10. GD.load("sunrise.jpg");
  11. GD.BitmapHandle(1);
  12. GD.cmd_loadimage(-1, 0);
  13. GD.load("healsky3.jpg");
  14. }
  15. void loop()
  16. {
  17. GD.Clear();
  18. GD.Begin(BITMAPS);
  19. GD.Vertex2ii(0, 0, 0); // handle 0: sunrise
  20. GD.Vertex2ii(200, 100, 1); // handle 1: healsky3
  21. GD.swap();
  22. } //' }A