working , removed spi
This commit is contained in:
7
.vscode/arduino.json
vendored
Normal file
7
.vscode/arduino.json
vendored
Normal file
@@ -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"
|
||||||
|
}
|
||||||
14
.vscode/c_cpp_properties.json
vendored
Normal file
14
.vscode/c_cpp_properties.json
vendored
Normal file
@@ -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
|
||||||
|
}
|
||||||
@@ -12,15 +12,15 @@
|
|||||||
|
|
||||||
|
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <SPI.h>
|
// #include <SPI.h>
|
||||||
#include <Adafruit_BMP280.h>
|
#include <Adafruit_BMP280.h>
|
||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
|
/*
|
||||||
#define BMP_SCK (13)
|
#define BMP_SCK (13)
|
||||||
#define BMP_MISO (12)
|
#define BMP_MISO (12)
|
||||||
#define BMP_MOSI (11)
|
#define BMP_MOSI (11)
|
||||||
#define BMP_CS (10)
|
#define BMP_CS (10)
|
||||||
|
*/
|
||||||
#define HEAD_HEIGHT 18
|
#define HEAD_HEIGHT 18
|
||||||
|
|
||||||
#include "DHT.h"
|
#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)
|
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
|
TODOS
|
||||||
-----
|
-----
|
||||||
|
|||||||
11
doc/displayLayout.md
Normal file
11
doc/displayLayout.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
## Display config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
header of 28 pixel height |||
|
||||||
|
|----------|----------|----------|
|
||||||
|
| widget 1 <br> 130x90 <br> at 2,30 | widget 2 <br> 130x90 <br> at 135,30 | widget 3 <br> 130x90 <br> at 138,30 |
|
||||||
|
| widget 4 <br> 130x90 <br> at 2,120 | widget 5 <br> 130x90 <br> at 135,120 | widget 6 <br> 130x90 <br> at 138,120 |
|
||||||
|
| widget 7 <br> 130x90 <br> at 2,210 | widget 8 <br> 130x90 <br> at 135,210 | widget 9 <br> 130x90 <br> at 138,210 |
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user