Skip to content

Commit 823a32a

Browse files
committed
some fixes on esp8266 includes
#227
1 parent fbbbd62 commit 823a32a

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

examples/SSD1306Ascii/SSD1306Ascii/SSD1306Ascii.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434

3535
#include <Arduino.h>
3636

37+
constexpr int OLED_SDA=4;
38+
constexpr int OLED_SDC=5;
39+
3740
#define I2C_ADDRESS 0x3C
3841
// #include <Wire.h>
3942
#include "SSD1306Ascii.h"

examples/SSD1306Ascii/platformio.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
; http://docs.platformio.org/page/projectconf.html
1010

1111
[platformio]
12-
src_dir=Button_Navigation
13-
;src_dir=SSD1306Ascii
12+
; src_dir=Button_Navigation
13+
src_dir=SSD1306Ascii
1414

1515
[env:nanoatmega328]
1616
platform = atmelavr
@@ -34,3 +34,10 @@ src_build_flags = !echo "-Wno-write-strings -Wno-reorder -fno-strict-aliasing -D
3434
; framework = arduino
3535
; upload_speed=921600
3636
; build_flags = -lstdc++ -DDEBUG
37+
38+
; [env:wemos]
39+
; platform = espressif8266
40+
; board = d1_mini_pro
41+
; framework = arduino
42+
; ; upload_speed=1500000
43+
; upload_speed=921600

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoMenu library
2-
version=4.16.1
2+
version=4.16.2
33
author=Rui Azevedo, [email protected]
44
maintainer=neu-rah, [email protected]
55
sentence=Generic menu/interactivity system

src/menu.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ warranty, express or implied, as to its usefulness for any purpose.
1313
#pragma once
1414

1515
#include "menuDefs.h"
16+
#ifdef ESP8266
17+
#include "menuIO/esp8266Out.h"
18+
#endif
1619

1720
#include "itemsTemplates.cpp"

src/menuIO/esp8266Out.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#ifndef RSITE_ARDUINO_MENU_ESP8266OUT
44
#define RSITE_ARDUINO_MENU_ESP8266OUT
55
#include "../menuDefs.h"
6-
#include <ESP8266WiFi.h>
6+
// #include <ESP8266WiFi.h>
77
// based on WebServer:
88
// https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer
99
// https://github.com/Links2004/arduinoWebSockets
10-
#include <WebSocketsServer.h>
10+
// #include <WebSocketsServer.h>
1111
#include <ESP8266WebServer.h>
1212
#include <vector>
1313
#include "xmlFmt.h"

0 commit comments

Comments
 (0)