fizz.ino 435 B

12345678910111213141516171819202122
  1. #include <EEPROM.h>
  2. #include <SPI.h>
  3. #include <GD2.h>
  4. void setup()
  5. {
  6. Serial.begin(1000000); // JCB
  7. GD.begin(~GD_STORAGE);
  8. }
  9. void loop() //' a{
  10. {
  11. GD.Clear();
  12. GD.Begin(POINTS);
  13. for (int i = 0; i < 100; i++) {
  14. GD.PointSize(GD.random(2 * GD.w));
  15. GD.ColorRGB(GD.random(), GD.random(), GD.random());
  16. GD.ColorA(GD.random());
  17. GD.Vertex2f(GD.random(PIXELS(GD.w)), GD.random(PIXELS(GD.h)));
  18. }
  19. GD.swap();
  20. } //' }a