虚拟神明会发放电子神之眼吗?
Do virtual gods hand out electronic visions?
ArduinoJson 6.21.1
KXTJ3-1057 0.0.1
LovyanGFX 1.1.5
OneButton 2.2.2
APDS-9930 https://github.com/Depau/APDS9930
LinkedList https://github.com/ivanseidel/LinkedList
LVGL https://github.com/lvgl/lvgl
RGB565_video https://github.com/moononournation/RGB565_video
esp32_audio https://github.com/atomic14/esp32_audio
该项目为硬件项目璃月神之眼 Extended的对应固件。
项目已同步至Gitee。
固件目前支持以下几种硬件:
下个大版本中计划的功能:
自0.2.1
版本起,神之眼实用程序可用于调整所有配置选项,包括播放列表、米游社配置、天气城市配置等。您可以从设备的设置菜单中启用实用程序后扫描二维码,或者访问设备ip地址进入实用程序。
Hoyolab.json
,并设定玩家id及米游社/Hoyolab cookie。文件格式参考如下:
{
"uid": "100000000",
"cookie": "PLACE YOUR COOKIE HERE 请在此处填写cookie值",
"device_guid": ""
}
device_guid
是选填项。其值应为不含短横线的guid,共32位字符。若留空,神之眼将会自动生成该值。let cookie_keys = ['_MHYUUID', 'ltoken', 'ltuid', 'cookie_token', 'account_id'];
var cookie = document.cookie;
var Str_Num = cookie.indexOf('_MHYUUID=');
var cookies = cookie.substring(Str_Num).split('; ');
for(var i = 0; i < cookies.length; i++){
if(!cookie_keys.includes(cookies[i].split("=")[0])){
cookies.splice(i--,1);
}
}
cookie = '"cookie": "' + cookies.join('; ') + '"';
var ask = confirm('按"确认"复制cookie至剪贴板');
if (ask == true) {
copy(cookie);
msg = cookie
} else {
msg = 'Cancel'
}
playFiles.json
,并设定视频/图片文件顺序及路径。路径需要以盘符'S'开头。文件格式参考如下:
{
"files": [
"S:/The_Vision_L/Pyro.mjpeg",
"S:/水.mjpeg",
"S:/风.jpg"
]
}
{
"files": [
"S:/水.mjpeg",
"S:/风.jpg",
"S:/风.jpg",
"S:/水.mjpeg"
]
}
Weather.json
,设定城市名称、纬度与经度、天气服务提供商。文件格式参考如下:
{
"city":"深圳",
"latitude":22.547,
"longitude":114.085947,
"provider":0
}
city
项为字符串格式。其他三项数值不要带上引号。Openmeteo
可选。请保持provider
项为0
。longitude
项,纬度填入latitude
项。建立串口连接。若使用的主板为开发版,使用Type-C接口直接连接电脑即可,无需额外操作;若使用的主板为普通版,则需使用额外USB-串口转换器,并按下图建立有线连接(以CH341A下载器为例)。
移步乐鑫科技网站并下载ESP Download Tool(Flash下载工具)
。
打开ESP Download Tool,芯片类型选择ESP32
,工作模式选择开发模式
。
按照下图设置刷入的文件、flash地址、flash速度,串口及下载速度按实际情况选择。
点击下载
按钮。若使用的主板为普通版,还需在按住BOOT键的同时短按EN键。若下载状态一直显示等待上电同步,重复此步骤。
当状态显示完成
后,断开串口连接。
如果您在编译过程中遇到库文件报错,请:
This is the firmware of hardware project 璃月神之眼 Extended.
These following hardwares are also supported:
Features planned for next major release:
Hoyolab.json
in SD card root directory, then set character id and Hoyolab cookie. Example shown as below:
{
"uid": "100000000",
"cookie": "PLACE YOUR COOKIE HERE 请在此处填写cookie值",
"device_guid": ""
}
device_guid
is optional. It should be a random generated guid without dash line, 32 characters in total. The vision will generate one if left blank.playFiles.json
in SD card root directory, then set the path and sequence of videos and pictures. The paths need include driver letter 'S'. Example shown as below:
{
"files": [
"S:/The_Vision_L/Pyro.mjpeg",
"S:/水.mjpeg",
"S:/风.jpg",
]
}
{
"files": [
"S:/水.mjpeg",
"S:/风.jpg",
"S:/风.jpg",
"S:/水.mjpeg"
]
}
Weather.json
in SD card root directory, set the city name, latitude & longitude, and weather service provider. Example shown as below:
{
"city":"Shenzhen",
"latitude":22.547,
"longitude":114.085947,
"provider":1
}
city
entry is in string. Do not quote the other three values.Openmeteo
avaliable as weather provider for now, please keep provider
as 0
.Setup serial connection with the vision. If using a development version board, just connect the vision with a Type-C wire, no further operations required; otherwise you need a USB-TTL dongle, and setup the connection as shown (e.g. connect using a CH341A downloader).
Move to Espressif Systems and download ESP Download Tool (Flash Download Tool)
。
Open ESP Download Tool,select ESP32
for chip type, development
for work mode.
Set the files, flash address, flash speed according to the figure below. Set serial port and download speed according to the actual situation.
Click Download
. If not using a development version board, short press the EN key while holding the BOOT key. If the status always shows sync
, repeat this step.
Disconnect when the status shows Finish
.
firmware.bin
to update.bin
and place it in the SD card root directory.
If you encounter errors during compilation, please: