summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEnricoGuccii <partyka.003@gmail.com>2025-05-13 12:49:37 +0200
committerEnricoGuccii <partyka.003@gmail.com>2025-05-13 12:49:37 +0200
commit86ba591615dde725833b2a024c79f9611326d8eb (patch)
tree836c8c2a13ec883da1d1f790bf04bfa7838e8c45 /src/main.cpp
parent4f96161a387c3bc32ee084f14095e50ab9716b5e (diff)
oled changes
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9a6be80..dfd56ca 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -5,12 +5,17 @@
#include "Buzzer.h"
#include "motors.h"
+#include "animations.h"
+
RGB rgb;
BUZZER buzzer;
MOTORS motors; // speed 80 is prefered, because of higher input voltage (5V -> 3.7V after H-bridge), motor is rated for 3V
// in practice, speed below 70 dosn't even work.
OLED oled;
+
+
+
void setup()
{
rgb.init();
@@ -18,10 +23,12 @@ void setup()
motors.init();
oled.init();
oled.showMessage("czesc");
- //oled.drawBitmap(Logo);
+ delay(3000);
}
void loop()
{
-
+ oled.showAnimation(animacja1[0], animacja1FrameCount , animacja1Width, animacja1Height,300);
+ //oled.showAnimation(animacja1[0], animacja1FrameCount , animacja1Width+ 20, animacja1Height,50); // fajny efekt
+ oled.showAnimation(animacja2[0], animacja2FrameCount , animacja2Width, animacja2Height,300);
} \ No newline at end of file