From 83194b29dae59628faae5f61915f25e54f5f09c5 Mon Sep 17 00:00:00 2001 From: Laurent Deleers Date: Fri, 10 Apr 2020 16:02:24 +0200 Subject: [PATCH] working , removed spi --- .vscode/arduino.json | 7 +++++++ .vscode/c_cpp_properties.json | 14 ++++++++++++++ arduino-envirstation.ino | 23 +++-------------------- doc/displayLayout.md | 11 +++++++++++ 4 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 .vscode/arduino.json create mode 100644 .vscode/c_cpp_properties.json create mode 100644 doc/displayLayout.md diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..6f73885 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,7 @@ +{ + "board": "esp8266:esp8266:d1", + "configuration": "xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600", + "programmer": "AVRISP mkII", + "port": "COM5", + "sketch": "arduino-envirstation.ino" +} \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..dfaabf6 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,14 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "C:\\Users\\lade\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\**", + "C:\\Users\\lade\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.6.3\\**" + ], + "forcedInclude": [], + "intelliSenseMode": "msvc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/arduino-envirstation.ino b/arduino-envirstation.ino index 5c7b766..27ccf65 100644 --- a/arduino-envirstation.ino +++ b/arduino-envirstation.ino @@ -12,15 +12,15 @@ #include -#include +// #include #include #include - +/* #define BMP_SCK (13) #define BMP_MISO (12) #define BMP_MOSI (11) #define BMP_CS (10) - +*/ #define HEAD_HEIGHT 18 #include "DHT.h" @@ -54,23 +54,6 @@ GxIO_Class io(SPI, /*CS=D8*/ SS, /*DC=D3*/ 0, /*RST=D4*/ 2); // arbitrary selec GxEPD_Class display(io, /*RST=D4*/ 2, /*BUSY=D0*/ 16); // default selection of D4(=2), D2(=4) /* -Display config - ----------------------------------- -| header of 28 pixel height | ----------------------------------- -| widget 0 | widget 1 | widget 2 | -| 130x90 | 130x90 | 130x90 | -| at 2,30 | at 135,30| at 138,30| ----------------------------------- -| widget 3 | widget 4 | widget 5 | -| 130x90 | 130x90 | 130x90 | -| at 2,120 | at135,120| at138,120| ----------------------------------- -| widget 6 | widget 7 | widget 8 | -| 130x90 | 130x90 | 130x90 | -| at 2,210 | at135,210| at138,210| ----------------------------------- TODOS ----- diff --git a/doc/displayLayout.md b/doc/displayLayout.md new file mode 100644 index 0000000..df5c73d --- /dev/null +++ b/doc/displayLayout.md @@ -0,0 +1,11 @@ +## Display config + + + + header of 28 pixel height ||| +|----------|----------|----------| +| widget 1
130x90
at 2,30 | widget 2
130x90
at 135,30 | widget 3
130x90
at 138,30 | +| widget 4
130x90
at 2,120 | widget 5
130x90
at 135,120 | widget 6
130x90
at 138,120 | +| widget 7
130x90
at 2,210 | widget 8
130x90
at 135,210 | widget 9
130x90
at 138,210 | + +