mirror of
https://github.com/fsender/readguy.git
synced 2025-12-10 20:18:14 +08:00
add to arduino library manager
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
.pio
|
||||
.vscode
|
||||
extra/tools/readguy_theme.psd
|
||||
extra/tools/*.exe
|
||||
lib/LovyanGFX
|
||||
test/epd_drivers
|
||||
test/lib_backup
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# 敬请期待: Coming soon:
|
||||
## 即将发布: Release 1.1.0 - 2023/09/25
|
||||
|
||||
1. -可-以-配-网-了- -也-可-以-在-线-更-新-固-件-了-.- -注-意-在-2-M-B- -f-l-a-s-h-的-项-目-上-是-无-法-通-过-在-线-更-新-固-件-的-. 现在还需要你通过示例来进行配网!
|
||||
即将发布: 1. 可以配网了 也可以在线更新固件了. 注意在2MB flash的硬件上是无法通过在线更新固件的. 现在还需要你通过示例来进行配网!
|
||||
|
||||
即将发布: 2. 增加了更多示例程序.
|
||||
|
||||
即将发布: 3. 修复了一些bug
|
||||
|
||||
### Release 1.0.2 - 2023/09/24
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<img src="extra/artset/readguy_theme3.png" width="30%" height="auto">
|
||||
|
||||
**版本1.0正式发布!欢迎分享、star和fork~** 上面的图是项目看板娘, 盖. 可爱的盖姐在等你哟~
|
||||
**版本1.0.2正式发布!欢迎分享、star和fork~** 上面的图是项目看板娘, 盖. 可爱的盖姐在等你哟~
|
||||
|
||||
欢迎克隆, 项目交流QQ群: 926824162 (萌新可以进来问问题的哟), 项目的 Bilibili 主页:
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
25
library.json
Normal file
25
library.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "readguy",
|
||||
"description": "A free E-paper display driver library supports 16-level greyscale.",
|
||||
"keywords": "epd,e-paper,epd-display,gfx,esp32,esp8266,esp32s2,esp32s3,esp32c3",
|
||||
"authors": {
|
||||
"name": "fsender",
|
||||
"url": "https://github.com/fsender",
|
||||
"maintainer": true
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/fsender/readguy"
|
||||
},
|
||||
"version": "1.1.0",
|
||||
"frameworks": "arduino",
|
||||
"platforms": ["espressif32", "espressif8266"],
|
||||
"headers": "readguy.h",
|
||||
"build": {
|
||||
"libArchive": false
|
||||
},
|
||||
"dependencies": {
|
||||
"name": "lovyan03/LovyanGFX",
|
||||
"version": ">=1.1.9"
|
||||
}
|
||||
}
|
||||
12
library.properties
Normal file
12
library.properties
Normal file
@@ -0,0 +1,12 @@
|
||||
name=readguy
|
||||
version=1.1.0
|
||||
author=fsender <f_ender@163.com>
|
||||
maintainer=fsender <f_ender@163.com>
|
||||
sentence=A free E-paper display driver library supports 16-level greyscale.
|
||||
paragraph=在所有受支持屏幕上都显示16级灰度内容!一次编译即可使程序兼容多种屏幕!目前支持ESP芯片平台、多种屏幕型号、1~3个按钮操控、SD卡、前置光亮度控制!固件在同芯片平台下完全兼容不同硬件设计!可以使用wifi配网来配置硬件信息。
|
||||
category=Display
|
||||
url=https://github.com/fsender/readguy
|
||||
includes=readguy.h
|
||||
architectures=esp8266,esp32,esp32s2,esp32s3,esp32c3
|
||||
depends=LovyanGFX
|
||||
|
||||
@@ -64,10 +64,9 @@ void readguy_driver::server_setup(const serveFunc *serveFuncs, int funcs){
|
||||
sv.on("/pinsetup", HTTP_GET, std::bind(&readguy_driver::handlePinSetup ,this));
|
||||
sv.on("/final", HTTP_POST, std::bind(&readguy_driver::handleFinalPost,this)); //此时验证已经正确
|
||||
sv.on("/wifi", HTTP_POST, std::bind(&readguy_driver::handleWiFiPost ,this)); //此时验证已经正确
|
||||
for(int i=0;i<funcs;i++){
|
||||
for(int i=0;i<funcs;i++){ //set-up 第三方库内容, 初始化后即可使用
|
||||
sv.on(serveFuncs[i].event,HTTPMethod(serveFuncs[i].method),serveFuncs[i].func);
|
||||
}
|
||||
FSBrowser_setup(); //set-up for fs-browser. 第三方库内容, 初始化后即可使用
|
||||
/*sv.on("/favicon.ico", HTTP_GET, [&](){
|
||||
sv.client().write_P(PSTR("HTTP/1.1 200 OK\r\n"
|
||||
"Content-Type: image/x-icon\r\n"
|
||||
@@ -408,7 +407,6 @@ void readguy_driver::handleNotFound(){
|
||||
//Serial.println(F("handleNotFound fx"));
|
||||
sv.send_P(404, TEXT_PLAIN, PSTR("404 Not Found."));
|
||||
}
|
||||
void readguy_driver::FSBrowser_setup(){} //初始化文件系统
|
||||
void readguy_driver::handleWiFiPost(){} //设置WiFi和聚合天气
|
||||
|
||||
|
||||
|
||||
@@ -284,7 +284,6 @@ class readguy_driver: public LGFX_Sprite{ // readguy 基础类
|
||||
void handleFinalPost(); //服务器-校验屏幕是否正常回调函数
|
||||
void handleWiFiPost(); //服务器-处理WiFi连接相关内容和API接口密钥功能
|
||||
void handleNotFound(); //服务器-404响应
|
||||
void FSBrowser_setup(); //服务器-初始化文件服务器
|
||||
#endif
|
||||
//按键驱动部分
|
||||
static guy_button btn_rd[3];
|
||||
|
||||
Reference in New Issue
Block a user