diff --git a/.gitignore b/.gitignore index 259148f..b196efe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Daisy +build/ + # Prerequisites *.d diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7336445 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "libDaisy"] + path = libDaisy + url = git@github.com:electro-smith/libDaisy.git +[submodule "daisySP"] + path = daisySP + url = git@github.com:electro-smith/DaisySP.git diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6eea08a --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +TARGET = Main + +CPP_SOURCES = src/main.cpp + +LIBDAISY_DIR = ./libDaisy +DAISYSP_DIR = ./daisySP + +SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core +include $(SYSTEM_FILES_DIR)/Makefile diff --git a/README.md b/README.md index f42643a..8507f8f 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# AnswerDo \ No newline at end of file +# Daisy Patch Template + +A starting point for creating Daisy Patch Projects. diff --git a/daisySP b/daisySP new file mode 160000 index 0000000..ddaa158 --- /dev/null +++ b/daisySP @@ -0,0 +1 @@ +Subproject commit ddaa1588c793e115f9e0ca915069376caf2e120a diff --git a/libDaisy b/libDaisy new file mode 160000 index 0000000..504f102 --- /dev/null +++ b/libDaisy @@ -0,0 +1 @@ +Subproject commit 504f10264c39b04e5ef4d85d4c10d052d44919f2 diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..d986fb6 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,37 @@ +#include "daisysp.h" +#include "daisy_patch.h" + +#include + +#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(); +} diff --git a/src/main.h b/src/main.h new file mode 100644 index 0000000..4784e0a --- /dev/null +++ b/src/main.h @@ -0,0 +1,3 @@ +void ProcessControls(); +void ProcessOled(); +void ProcessOutputs();