This commit is contained in:
janik
2026-02-27 17:31:42 +07:00
parent 87bd6ef982
commit eddce0bc68
13 changed files with 15687 additions and 14973 deletions

View File

@@ -78,6 +78,7 @@ class FeederMonitor:
self.sw1_pressed = False
self.sw2_pressed = False
self.drive_value = 0
self.drive_mode = 0
# Statistics
self.packet_count = 0
@@ -170,6 +171,9 @@ class FeederMonitor:
elif part.startswith('D:'):
self.drive_value = int(part[2:])
elif part.startswith('M:'):
self.drive_mode = int(part[2:])
self.packet_count += 1
self.last_packet_time = time.time()
return True
@@ -304,7 +308,8 @@ class FeederMonitor:
feed_icon = f"{Colors.YELLOW}{Colors.RESET}" if self.feed_in_progress else f"{Colors.DIM}{Colors.RESET}"
beefy_icon = f"{Colors.MAGENTA}{Colors.RESET}" if self.beefy_tape else f"{Colors.DIM}{Colors.RESET}"
print(f"{Colors.CYAN}{Colors.RESET} {init_icon} Initialized {feed_icon} Feeding {beefy_icon} Beefy Tape {Colors.CYAN}{Colors.RESET}")
mode_str = f"{Colors.YELLOW}PEEL{Colors.RESET}" if self.drive_mode else f"{Colors.BLUE}TAPE{Colors.RESET}"
print(f"{Colors.CYAN}{Colors.RESET} {init_icon} Initialized {feed_icon} Feeding {beefy_icon} Beefy Tape Mode: {mode_str} {Colors.CYAN}{Colors.RESET}")
# Address and buttons
addr_str = f"0x{self.address:02X}" if self.address != 0xFF else "UNSET"