summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: dfd56ca091109f75f676299a57e72f8b11941233 (plain)
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
#include <Arduino.h>
#include "settings.h"
#include "rgb.h"
#include "oled.h"
#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();
    buzzer.init();
    motors.init();
    oled.init();
    oled.showMessage("czesc");
    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);
}