Add support AZSMZ TFT (#28)

* support AZSMZ

* Update README.md

* Add files via upload

* Update README.md

* Update esp8266-weather-station-color.ino

* Update esp8266-weather-station-color.ino

* Update esp8266-weather-station-color.ino

* Update settings.h
This commit is contained in:
cxandy
2017-07-22 21:06:29 +08:00
committed by Daniel Eichhorn
parent 0b0b6464ff
commit 3ee59a720e
4 changed files with 253 additions and 48 deletions

View File

@@ -21,19 +21,46 @@ See more at http://blog.squix.ch
#include <simpleDSTadjust.h>
// Setup
const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
// Pins for the ILI9341
#define TFT_DC D2
#define TFT_CS D1
#define TFT_LED D8
// touch screen pins
#define TOUCH_CS D3
#define TOUCH_IRQ D4
#define WIFI_SSID "yourssid"
#define WIFI_PASS "yourpassw0rd"
const int UPDATE_INTERVAL_SECS = 10 * 60; // Update every 10 minutes
const int SLEEP_INTERVAL_SECS = 0; // Going to Sleep after idle times, set 0 for dont sleep
#define SQUIX 10
#define AZSMZ_1_1 11
#define BOARD SQUIX
//#define BOARD AZSMZ_1_1
#if BOARD == SQUIX
// Pins for the ILI9341
#define TFT_DC D2
#define TFT_CS D1
#define TFT_LED D8
#define HAVE_TOUCHPAD
#define TOUCH_CS D3
#define TOUCH_IRQ D4
#elif BOARD == AZSMZ_1_1
#define TFT_DC 5
#define TFT_CS 4
#define TFT_LED 16
#define TFT_LED_LOW // set LOW to Turn on;
#define BTN_1 0
#define LM75
#define SDA_PIN 0
#define SCL_PIN 2
// LM75A Address
#define Addr 0x48
#define BATT
#endif
// Wunderground Settings
// To check your settings first try them out in your browser:
// http://api.wunderground.com/api/WUNDERGROUND_API_KEY/conditions/q/WUNDERGROUND_COUNTTRY/WUNDERGROUND_CITY.json
@@ -68,3 +95,4 @@ bool IS_STYLE_12HR = false;
/***************************
* End Settings
**************************/