forked from billieblaze/BBlazeSEQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BBlazeSEQ.ino
57 lines (42 loc) · 1.03 KB
/
BBlazeSEQ.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*BBlazeSeq v0.8 */
// TODO: redo bottom button column connector!
// TODO: create / save(pattern knob button) multiple patterns - calculate out the storage requirements for such data and how many patterns i could hold
// TODO: allow CC data in the pattern - maybe just filter initially?
// todo: check rotary 3 and 9
#include "constants.h"
#include <stdio.h>
#include <stdlib.h>
#include <Wire.h>
#include "SPI.h"
#include <MIDI.h>
#include <LiquidCrystal_I2C.h>
#include <digitalWriteFast.h>
#include "config.h"
#include <ShiftMatrixPWM.h> // included last because pins are declared in config.h
#include "midi.h"
#include "keypad.h"
#include "navkeys.h"
#include "encoders.h"
#include "UI.h"
#include "matrix.h"
#include "lcd.h"
// Setup
void setup(){
//Serial.begin(9600);
setupLCD();
setupLEDMatrix();
setupKeypad();
setupMIDI();
}
// Main Loop
void loop(){
startTime = millis();
MIDI.read();
scanUI();
handleMatrix();
handleEncoders();
handleNavButtons();
handleKeypad();
updateLCDArray();
writeToLCD();
}