From 7780f3e2f39f674cd8d413e3f20517bfd7f76de0 Mon Sep 17 00:00:00 2001 From: ebrother Date: Sat, 10 Oct 2026 22:08:34 +0800 Subject: [PATCH] first commit --- CommCfg.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++ Main.c | 8 +++++++ mb_reg_reset.toml | 7 +++++++ opencode.json | 10 +++++++++ 4 files changed, 78 insertions(+) create mode 100644 CommCfg.json create mode 100644 Main.c create mode 100644 mb_reg_reset.toml create mode 100644 opencode.json diff --git a/CommCfg.json b/CommCfg.json new file mode 100644 index 0000000..77a930c --- /dev/null +++ b/CommCfg.json @@ -0,0 +1,53 @@ +[ + { + "id": "c1", + "name": "P2", + "protocol": "Modbus RTU", + "comPort": 2, + "ip": "", + "port": 0, + "devices": [ + { + "id": "c2", + "name": "S1", + "slaveAddress": 1, + "variables": [ + { + "id": "v1", + "varId": "v1", + "dataType": "U16", + "addr": "0", + "vAddr": "100", + "attr": 3, + "funcCode": 3, + "qty": 1, + "remark": "", + "groupId": "g1791641271747", + "retryCount": 3, + "scanPeriod": 1000, + "replyTimeout": 1000, + "cmdDelay": 0 + }, + { + "id": "v2", + "varId": "v2", + "dataType": "U16", + "addr": "10", + "vAddr": "110", + "attr": 3, + "funcCode": 3, + "qty": 1, + "remark": "", + "groupId": "g1791641271747", + "retryCount": 3, + "scanPeriod": 1000, + "replyTimeout": 1000, + "cmdDelay": 0 + } + ], + "expanded": false + } + ], + "expanded": true + } +] \ No newline at end of file diff --git a/Main.c b/Main.c new file mode 100644 index 0000000..4c07eeb --- /dev/null +++ b/Main.c @@ -0,0 +1,8 @@ +#include "sys.h" + +void init(void) +{ +} +void loop(void) +{ +} diff --git a/mb_reg_reset.toml b/mb_reg_reset.toml new file mode 100644 index 0000000..2b1571b --- /dev/null +++ b/mb_reg_reset.toml @@ -0,0 +1,7 @@ +[global] +version = "3.0.4-108" +pn = "GY-E242" +encoding = "UTF-8" + +[[prog]] +file_name = "Main.c" diff --git a/opencode.json b/opencode.json new file mode 100644 index 0000000..f6fca44 --- /dev/null +++ b/opencode.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://opencode.ai/config.json", + "mcp": { + "blockware": { + "type": "remote", + "url": "http://127.0.0.1:62222/mcp", + "enabled": true + } + } +}