mirror of
https://github.com/AquaMorph/Droplets.git
synced 2025-09-14 05:50:31 +00:00
Setup basic Daisy environment
This commit is contained in:
37
src/main.cpp
Normal file
37
src/main.cpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "daisysp.h"
|
||||
#include "daisy_patch.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "main.h"
|
||||
|
||||
using namespace daisy;
|
||||
using namespace daisysp;
|
||||
|
||||
DaisyPatch patch;
|
||||
|
||||
int main(void) {
|
||||
patch.Init();
|
||||
patch.StartAdc();
|
||||
while(true) {
|
||||
ProcessControls();
|
||||
ProcessOled();
|
||||
ProcessOutputs();
|
||||
}
|
||||
}
|
||||
|
||||
void ProcessControls() {}
|
||||
|
||||
void ProcessOutputs() {}
|
||||
|
||||
void ProcessOled() {
|
||||
patch.display.Fill(false);
|
||||
|
||||
std::string str;
|
||||
char* cstr = &str[0];
|
||||
patch.display.SetCursor(0,0);
|
||||
str = "Daisy Template";
|
||||
patch.display.WriteString(cstr, Font_7x10, true);
|
||||
|
||||
patch.display.Update();
|
||||
}
|
3
src/main.h
Normal file
3
src/main.h
Normal file
@@ -0,0 +1,3 @@
|
||||
void ProcessControls();
|
||||
void ProcessOled();
|
||||
void ProcessOutputs();
|
Reference in New Issue
Block a user