-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathArduinoLogoDrawing.ino
37 lines (31 loc) · 1.01 KB
/
ArduinoLogoDrawing.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
ArduinoLogoDrawing
created 17 Apr 2023
by Leonardo Cavagnis
*/
#include "Arduino_H7_Video.h"
#include "ArduinoGraphics.h"
Arduino_H7_Video Display(800, 480, GigaDisplayShield);
//Arduino_H7_Video Display(1024, 768, USBCVideo);
void setup() {
Display.begin();
Display.beginDraw();
Display.background(255, 255, 255);
Display.clear();
Display.fill(0x008184);
Display.circle(Display.width()/2, Display.height()/2, 300);
Display.stroke(255, 255, 255);
Display.noFill();
for (int i=0; i<30; i++) {
Display.circle((Display.width()/2)-55+5, Display.height()/2, 110-i);
Display.circle((Display.width()/2)+55-5, Display.height()/2, 110-i);
}
Display.fill(255, 255, 255);
Display.rect((Display.width()/2)-55-16+5, (Display.height()/2)-5, 32, 10);
Display.fill(255, 255, 255);
Display.rect((Display.width()/2)+55-16-5, (Display.height()/2)-5, 32, 10);
Display.fill(255, 255, 255);
Display.rect((Display.width()/2)+55-5-5, (Display.height()/2)-16, 10, 32);
Display.endDraw();
}
void loop() { }