From 462e100c27cdfad2e37a8764135ca93dd5b138af Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Wed, 8 Oct 2025 15:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 -------- main/bus/rs485_manager.py | 0 main/command_processor.py | 0 main/config.py | 0 main/lora/lora_handler.py | 0 main.py => main/main.py | 1 - client_pb.py => main/proto/client_pb.py | 0 7 files changed, 9 deletions(-) create mode 100644 main/bus/rs485_manager.py create mode 100644 main/command_processor.py create mode 100644 main/config.py create mode 100644 main/lora/lora_handler.py rename main.py => main/main.py (97%) rename client_pb.py => main/proto/client_pb.py (100%) diff --git a/Makefile b/Makefile index f69cb84..e69de29 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +0,0 @@ - -.PHONY: proto - -proto: proto-standard - -proto-standard: - cmd /c python -m grpc_tools.protoc -I./proto --python_out=./proto ./proto/client.proto && move proto\client_pb2.py proto\client_pb.py - diff --git a/main/bus/rs485_manager.py b/main/bus/rs485_manager.py new file mode 100644 index 0000000..e69de29 diff --git a/main/command_processor.py b/main/command_processor.py new file mode 100644 index 0000000..e69de29 diff --git a/main/config.py b/main/config.py new file mode 100644 index 0000000..e69de29 diff --git a/main/lora/lora_handler.py b/main/lora/lora_handler.py new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main/main.py similarity index 97% rename from main.py rename to main/main.py index b68e7b8..c4c05bd 100644 --- a/main.py +++ b/main/main.py @@ -5,7 +5,6 @@ 猪舍主控系统主程序入口 """ -import machine import time # import struct # 根据需要保留或删除 # import client_pb # 根据需要保留或删除 diff --git a/client_pb.py b/main/proto/client_pb.py similarity index 100% rename from client_pb.py rename to main/proto/client_pb.py