Skip to content

Commit 2fd224a

Browse files
authored
Merge pull request #1 from mhaack/mhaack-patch-1
Move to CircleCI
2 parents 2b53958 + 1eda5f2 commit 2fd224a

File tree

4 files changed

+56
-37
lines changed

4 files changed

+56
-37
lines changed

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Homie Sensor project with BME280
22

3-
[![Build Status](https://img.shields.io/travis/mhaack/mqtt-bme280-homie.svg?style=flat-square)](https://travis-ci.org/mhaack/mqtt-bme280-homie)
3+
[![Build Status](https://circleci.com/gh/mhaack/mqtt-bme280-homie/tree/master.svg?style=shield)](https://circleci.com/gh/mhaack/mqtt-bme280-homie/tree/master)
44
[![GitHub release](https://img.shields.io/github/release/mhaack/mqtt-bme280-homie.svg?style=flat-square)](https://github.com/mhaack/mqtt-bme280-homie/releases)
55

66
The mqtt-bme280-homie project is a small and easy to integrate temperature, air pressure and humidity monitoring solution with an extra SSD1306 OLED display. Sensor data is send via MQTT and displayed on the small screen. Local time is loaded via NTP. The project is built with a cost-effective ESP8266 WiFi chip (I used a NodeMCU from ebay, Wemos D1 mini will do as well).

platformio.ini

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,25 @@
1212
platform = espressif8266
1313
board = nodemcuv2
1414
framework = arduino
15-
lib_deps = ArduinoJson, AsyncMqttClient, Bounce2, Adafruit Unified Sensor, Adafruit BME280 Library, ESP8266_SSD1306, NTPClient
15+
lib_deps = Adafruit Unified Sensor
16+
Adafruit BME280 Library
17+
ESP8266_SSD1306
18+
NTPClient
19+
https://github.com/marvinroger/homie-esp8266.git#develop
1620
board_f_cpu = 160000000L
1721
monitor_baud = 115200
22+
upload_speed = 115200
23+
24+
[env:d1_mini]
25+
platform = espressif8266
26+
board = d1_mini
27+
framework = arduino
28+
lib_deps = Adafruit Unified Sensor
29+
Adafruit BME280 Library
30+
ESP8266_SSD1306
31+
NTPClient
32+
https://github.com/marvinroger/homie-esp8266.git#develop
33+
board_f_cpu = 160000000L
34+
monitor_baud = 115200
35+
upload_speed = 115200
36+

src/images.h

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define WiFi_Logo_width 60
22
#define WiFi_Logo_height 36
3-
const char WiFi_Logo_bits[] PROGMEM = {
3+
const uint8_t WiFi_Logo_bits[] PROGMEM = {
44
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8,
55
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xFF, 0x07, 0x00, 0x00, 0x00,
66
0x00, 0x00, 0xE0, 0xFF, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF8, 0xFF,
@@ -27,20 +27,42 @@ const char WiFi_Logo_bits[] PROGMEM = {
2727
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2828
};
2929

30-
const char emptySymbol[] PROGMEM = {B00000000, B00000000, B00000000, B00000000,
31-
B00000000, B00000000, B00000000, B00000000};
30+
const uint8_t emptySymbol[] PROGMEM = {
31+
B00000000,
32+
B00000000,
33+
B00000000,
34+
B00000000,
35+
B00000000,
36+
B00000000,
37+
B00000000,
38+
B00000000
39+
};
3240

33-
const char activeSymbol[] PROGMEM = {B00000000, B00000000, B00011000,
34-
B00100100, B01000010, B01000010,
35-
B00100100, B00011000};
41+
const uint8_t activeSymbol[] PROGMEM = {
42+
B00000000,
43+
B00000000,
44+
B00011000,
45+
B00100100,
46+
B01000010,
47+
B01000010,
48+
B00100100,
49+
B00011000
50+
};
3651

37-
const char inactiveSymbol[] PROGMEM = {B00000000, B00000000, B00000000,
38-
B00000000, B00011000, B00011000,
39-
B00000000, B00000000};
52+
const uint8_t inactiveSymbol[] PROGMEM = {
53+
B00000000,
54+
B00000000,
55+
B00000000,
56+
B00000000,
57+
B00011000,
58+
B00011000,
59+
B00000000,
60+
B00000000
61+
};
4062

4163
#define temp_icon_width 32
4264
#define temp_icon_height 32
43-
const char temp_icon_bits[] PROGMEM = {
65+
const uint8_t temp_icon_bits[] PROGMEM = {
4466
0x00, 0xFE, 0x00, 0x00, 0x00, 0xFF, 0xE1, 0x07, 0x80, 0xFF, 0xF3, 0x0F,
4567
0xC0, 0xC3, 0xF3, 0x0F, 0xC0, 0x83, 0x03, 0x00, 0xC0, 0x81, 0x07, 0x00,
4668
0xC0, 0x01, 0xF7, 0x0F, 0xC0, 0x01, 0xF7, 0x0F, 0xC0, 0x01, 0xF7, 0x0F,
@@ -56,7 +78,7 @@ const char temp_icon_bits[] PROGMEM = {
5678

5779
#define humidity_width 32
5880
#define humidity_height 32
59-
const char humidity_bits[] PROGMEM = {
81+
const uint8_t humidity_bits[] PROGMEM = {
6082
0x00, 0x00, 0xC0, 0x03, 0x00, 0x00, 0xC0, 0x03, 0xE0, 0x00, 0xE0, 0x03,
6183
0xF0, 0x00, 0xE0, 0x07, 0xF0, 0x01, 0xE0, 0x07, 0xF0, 0x01, 0xF0, 0x07,
6284
0xF8, 0x03, 0xF0, 0x0F, 0xF8, 0x03, 0xF0, 0x0F, 0xF8, 0x03, 0x78, 0x0F,
@@ -72,7 +94,7 @@ const char humidity_bits[] PROGMEM = {
7294

7395
#define pressure_width 32
7496
#define pressure_height 32
75-
const char pressure_bits[] PROGMEM = {
97+
const uint8_t pressure_bits[] PROGMEM = {
7698
0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, 0xFE, 0x03, 0x00, 0x00, 0xDF, 0x07,
7799
0x00, 0x00, 0x07, 0x07, 0x00, 0x80, 0x03, 0x3E, 0x00, 0xC0, 0x03, 0x7C,
78100
0x00, 0xF0, 0x01, 0xE0, 0x00, 0x70, 0x00, 0xC0, 0x00, 0x38, 0x00, 0xC0,
@@ -88,7 +110,7 @@ const char pressure_bits[] PROGMEM = {
88110

89111
#define arrows_width 32
90112
#define arrows_height 32
91-
const static char arrows_bits[] = {
113+
const uint8_t arrows_bits[] PROGMEM = {
92114
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
93115
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
94116
0xC0, 0xE0, 0xFF, 0x07, 0xE0, 0xC1, 0xFF, 0x07, 0xE0, 0x83, 0xFF, 0x07,

0 commit comments

Comments
 (0)