From 7339c42b60cc817a654a69fb24ad806d4d7c9f12 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Thu, 26 May 2022 15:11:27 +0200 Subject: [PATCH] Refactor eink driver --- eink/eink | 2 +- eink/eink.cppproj | 112 +++++++++++++++++++++++----------------------- eink/main.cpp | 4 +- eink/spi | 2 +- 4 files changed, 60 insertions(+), 60 deletions(-) diff --git a/eink/eink b/eink/eink index 08dd107..2bad84d 160000 --- a/eink/eink +++ b/eink/eink @@ -1 +1 @@ -Subproject commit 08dd1073af43b65b358257b968852aae8fc77946 +Subproject commit 2bad84d2e6cfc9b4f332f351e16534c1472094e2 diff --git a/eink/eink.cppproj b/eink/eink.cppproj index 87e345f..ee9470f 100644 --- a/eink/eink.cppproj +++ b/eink/eink.cppproj @@ -157,68 +157,68 @@ - -mmcu=atmega328p - True - True - True - True - False - True - True - - - DEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize (-O1) - True - Maximum (-g3) - True - True - True - -fno-threadsafe-statics -std=c11 - True - True - - - DEBUG - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Optimize debugging experience (-Og) - True - Maximum (-g3) - True - True - -fno-threadsafe-statics -Wextra -std=c++17 - - - libm - - - - - %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include - - - Default (-Wa,-g) - + -mmcu=atmega328p + True + True + True + True + False + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize (-O1) + True + Maximum (-g3) + True + True + True + -fno-threadsafe-statics -std=c11 + True + True + + + DEBUG + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Optimize debugging experience (-Og) + True + Maximum (-g3) + True + True + -fno-threadsafe-statics -Wextra -std=c++17 + + + libm + + + + + %24(PackRepoDir)\Atmel\ATmega_DFP\1.4.346\include + + + Default (-Wa,-g) + compile - + compile diff --git a/eink/main.cpp b/eink/main.cpp index 12607ef..ee7c81e 100644 --- a/eink/main.cpp +++ b/eink/main.cpp @@ -5,7 +5,7 @@ #include "spi/spi.hpp" #include "uart/uart.hpp" -#include "eink/epd1in54b_V2.h" +#include "eink/eink.hpp" #include "eink/imagedata.h" using uart_t = uart::Uart0<>; @@ -38,7 +38,7 @@ int main() serial << F("e-Paper draw") << F("\r\n"); epd.DisplayFrame(IMAGE_BLACK, IMAGE_RED); - + serial << F("e-Paper sleep") << F("\r\n"); epd.Sleep(); diff --git a/eink/spi b/eink/spi index 70aabc0..bb78d22 160000 --- a/eink/spi +++ b/eink/spi @@ -1 +1 @@ -Subproject commit 70aabc07f64a33b04e3e9ee00627f5c120b1f9ef +Subproject commit bb78d2291d603647b19600eb3cc02dabce2f8ea5