Skip to content

Commit ef2faaa

Browse files
committed
Add decoding of 3 data items from connected device for local display with settings for data extraction / conversion (based on sscanf), slope / offset and name.
Add SPIFFs file system support for user update of web pages Add NeoPixel support Start on simple IO command evaluator Add configurable connected device baud rate Use EEPROM.put to save config data Start on ePaper display support Tried to improve selection of TFT display
1 parent 0c9f15d commit ef2faaa

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

data/index.htm

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!doctype html>
2+
<meta name="viewport" content="width=device-width, initial-scale=1" />
3+
<script src="microajax.js"></script>
4+
<html>
5+
<head>
6+
<title>ESP8266 IOT Serial to Web</title>
7+
<style>
8+
body { background-color: #cccccc; font-family: Arial, Helvetica, Sans-Serif; Color: #000088; }
9+
</style>
10+
<meta charset="utf-8" />
11+
</head>
12+
<body>
13+
<pre><div id='log'></div></pre>
14+
<p>
15+
<form id='msg' action='data' method='get'>
16+
<input id='txt' name='text' type='text'></input><input id='crlf' type='checkbox' checked>+cr?</input>
17+
</form></p>
18+
<p><a href="/admin.html">Settings</a> <!-- <a href="/file?start=1">Stream</a> --> </p>
19+
<script type='text/javascript' src='/jquery-3.3.1.min.js'></script>
20+
21+
<script type='text/javascript'>
22+
$('#msg').submit(function(){
23+
var clientmsg = $('#txt').val();
24+
if ($('#crlf').is(':checked')) clientmsg+='\r';
25+
var log=$('#log');
26+
log.html(log.html()+'<b>'+clientmsg+'</b>');
27+
$.get('data', {text: clientmsg}, function(html){
28+
log.html(log.html()+html);
29+
});
30+
$('#txt').attr('value', '');
31+
loadLog(); //instantly pick up any response.
32+
return false;
33+
});
34+
function loadLog(){
35+
var log=$('#log');
36+
$.ajax({
37+
url: 'data',
38+
cache: false,
39+
success: function(html){
40+
log.html(log.html()+html);
41+
},
42+
});
43+
};
44+
setInterval (loadLog, 2500);
45+
</script>
46+
</body>
47+
</html>

data/jquery-3.3.1.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esp8266WebSerial.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ No workee... you also have to set it in the TFT_eSPI user_setup_select.h file
9696
*/
9797
//#define TFT_ADAFRUIT_2088 //original 128x128
9898
//#define TFT_ADAFRUIT_358 //new 128x160
99-
#define TFT_ILI9341
100-
#define PIXELS 26
99+
//#define TFT_ILI9341
100+
#define EPAPER 1.5
101+
101102
//to drive NeoPixels, SK6812, WS2811, WS2812 and WS2813 with hex P command.
103+
//#define PIXELS 26
102104
#define DEBUGGING
103105

104106

0 commit comments

Comments
 (0)