-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start v40 development * CHANGE: CO2 alert lower values to 300 * [Feature] Enter setup mode API Fixes #46 * update readme * [Enhance] Add moving something to Setup mode display Fixes #44 * update readme * [Enhance] mDNS code ESP32 and ESP8266 are duplicated Fixes #60 * [Enhance] Alerts should not occur if no sensor connected Fixes #49 * update readme * fIX: compile error * fix #64 * CHANGE: Dont timer read if sensor not connected * CHANGE: No sensor No alert * FIX: Wait for reconfigure bar length invalid * update readme * refs #54 * [Feature] Air pressure delta Fixes #54 * [Feature] Air pressure delta Fixes #54 bigmode * v40
- Loading branch information
1 parent
293b343
commit 377386d
Showing
62 changed files
with
1,105 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[*.cpp, *.h] | ||
indent_size = 4 | ||
indent_style = tab | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 5 additions & 2 deletions
7
include/display_ssd1306.h → include/display/display_ssd1306.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "structs.h" | ||
typedef struct { | ||
float value; | ||
bool positive = false; // 値が0.1以上のプラス。プラスでもマイナスでもない場合に注意 | ||
bool negative = false; // 絶対値が0.1以上のマイナス。プラスでもマイナスでもない場合に注意 | ||
bool drawIcon = true; // 絶対値0.2以上 | ||
String formattedValue; // プラス・マイナスを除去した数字だけフォーマット | ||
} pressure_delta_t; | ||
|
||
bool has_caution(value_alerts_t alerts); | ||
bool has_warning(value_alerts_t alerts); | ||
|
||
String format_air_pressure_delta(float value); | ||
pressure_delta_t get_pressure_delta_struct(float pressureDelta); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <Arduino.h> | ||
#include <TFT_eSPI.h> | ||
|
||
extern TFT_eSPI tft; | ||
|
||
enum class ARROW_ICON { | ||
NONE = 0, UP = 1, DOWN = 2, PLUS = 3, MINUS = 4 | ||
}; | ||
|
||
/** | ||
* 矢印を書く | ||
*/ | ||
void draw_arrow(int x, int y, ARROW_ICON type, uint16_t color, int height, int width); | ||
|
||
/** | ||
* 矢印を書く(12 x 22) | ||
*/ | ||
void draw_arrow(int x, int y, ARROW_ICON type, uint16_t color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <Arduino.h> | ||
|
||
enum class TextAlign { LEFT = 1 , RIGHT = 2 }; | ||
|
||
enum class TextDecoration { NONE = 0 , BOX = 2, INVERT = 4 }; | ||
|
||
void draw_string(int x, int y, String valueString, TextAlign align, const uint8_t *font); | ||
void draw_string(int x, int y, String valueString, TextAlign align); | ||
|
||
uint16_t draw_value(int x, int y, TextDecoration deco, TextAlign align, String valueString, const uint8_t *valueFont, String unitString, const uint8_t *unitFont); | ||
|
||
/** | ||
* 画面反転切り替え。画面の内容は変更せずに反転する。 | ||
* @param inverse true 反転する false しない | ||
*/ | ||
void set_invert(bool inverse); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
void adt_setup(void); | ||
#include "structs.h" | ||
|
||
sensor_characters_t adt_characters(); | ||
|
||
// 初期化 | ||
bool adt_setup(void); | ||
|
||
void adt_read_data(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
void am_setup(); | ||
#include "structs.h" | ||
|
||
// | ||
sensor_characters_t am_characters(); | ||
|
||
// 初期化 | ||
bool am_setup(); | ||
|
||
void am_read_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
void bh_setup(); | ||
#include "structs.h" | ||
|
||
sensor_characters_t bh_characters(); | ||
|
||
// 初期化 | ||
bool bh_setup(); | ||
|
||
void bh_read_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
void bme_setup(); | ||
#include "structs.h" | ||
|
||
sensor_characters_t bme_characters(); | ||
|
||
bool bme_setup(); | ||
|
||
void bme_read_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
void lps_setup(void); | ||
#include "structs.h" | ||
|
||
sensor_characters_t lps_characters(); | ||
|
||
bool lps_setup(void); | ||
void lps_read_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
void mhz_setup(); | ||
#include "structs.h" | ||
|
||
sensor_characters_t mhz_characters(); | ||
|
||
bool mhz_setup(); | ||
void mhz_read_data(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// Air Pressure delta | ||
// | ||
|
||
/** | ||
* 差分比較用に今の気圧を蓄積します。 | ||
*/ | ||
void store_air_pressure_history(); | ||
|
||
void store_air_pressure_delta(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
void tsl_setup(); | ||
#include "structs.h" | ||
|
||
sensor_characters_t tsl_characters(); | ||
|
||
bool tsl_setup(); | ||
void read_data_tsl2561(); |
Oops, something went wrong.