summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 453eb0b600ae8efec1e595d347635b19070b591f (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include <Arduino.h>
#include "oled.h"
#include "rgb.h"

void setup() {
  // oled_init();
  //oled_print("siema", 0, 10);
  // oled_drawBox();
  
  
  // pinMode(RED_PIN, OUTPUT);  
  // pinMode(GREEN_PIN, OUTPUT);  
  // pinMode(BLUE_PIN, OUTPUT);  

  // pinMode(IN1, OUTPUT);
  // pinMode(IN2, OUTPUT);

  // pinMode(IN3, OUTPUT);
  // pinMode(IN4, OUTPUT);
}

void loop() {

  // setColorRGB(255, 0, 0); // Red
  // oled_print("  red", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(0, 255, 0); // Green
  // oled_print("  green", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(0, 0, 255); // Blue
  // oled_print("  blue", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(255, 255, 0); // Yellow
  // oled_print("  yellow", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(0, 255, 255); // Cyan
  // oled_print("  cyan", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(255, 0, 255); // Magenta
  // oled_print("  magenta", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(255, 255, 255); // White
  // oled_print("  white", 0, 10);
  // delay(2500);
  // oled_clear();
  // setColorRGB(0, 0, 0); // Off
  // oled_print("  off", 0, 10);
  // delay(2500);
  // oled_clear();
  // digitalWrite(RED_PIN, HIGH);
  // digitalWrite(GREEN_PIN, LOW);
  // digitalWrite(BLUE_PIN, LOW);
  // digitalWrite(IN1, HIGH);
  // digitalWrite(IN2, LOW);
  // digitalWrite(IN3, HIGH);
  // digitalWrite(IN4, LOW);
  // delay(2000);
  // digitalWrite(RED_PIN, LOW);
  // digitalWrite(GREEN_PIN, HIGH);
  // digitalWrite(BLUE_PIN, LOW);
  // digitalWrite(IN1, LOW);
  // digitalWrite(IN2, HIGH);
  // digitalWrite(IN3, LOW);
  // digitalWrite(IN4, HIGH);
  // delay(2000);
  // digitalWrite(RED_PIN, LOW);
  // digitalWrite(GREEN_PIN, LOW);
  // digitalWrite(BLUE_PIN, HIGH);
  // digitalWrite(IN1, LOW);
  // digitalWrite(IN2, HIGH);
  // digitalWrite(IN3, HIGH);
  // digitalWrite(IN4, LOW);
  // delay(2000);
}