Skip to content

Dev#50

Open
weirdglitch-42 wants to merge 12 commits into
m5stack:mainfrom
weirdglitch-42:dev
Open

Dev#50
weirdglitch-42 wants to merge 12 commits into
m5stack:mainfrom
weirdglitch-42:dev

Conversation

@weirdglitch-42
Copy link
Copy Markdown

No description provided.

readme changes
- Add firmware/ menu.bat for interactive build options
- Add clean_build.bat, build.bat, flash.bat, erase_flash.bat
- Update README.md with build instructions
- Update .gitignore for firmware build folder
sorting out project structure
- Add ModeInfo table (mode.cpp/h) with centralized mode definitions:
  * name, mood, cycle order, XP multiplier, channel hop settings
  * UI: tone frequency, head movement interval, avatar emotion
  * Neon colors (static + dynamic callback for HUNT mode)
  * onEnter callback for mode switch UI re-initialization
- Add WebManager class (CONFIG mode HTTP server)
- Refactor app_gotchi.cpp: replace switch statements with ModeInfo getters
- Refactor gotchi.cpp: simplify setMode(), getModeName(), addXP()
- Fix deauth frame format (26-byte 802.11 management frame)
- Remove unused hsIcon variable (dead code)
- Total: ~750 lines removed across gotchi.cpp and app_gotchi.cpp
…elector

- Add ModeInfo centralized mode definitions (name, mood, XP, neon, dialogue)
- Create RogueManager class for ROGUE mode beacon spam with NVS persistence
- Add network selector to CONFIG web interface (load/set target networks)
- Auto-select strongest discovered network when starting ROGUE mode
- Clear AP config to prevent 'StackChan-Config' SSID during ROGUE mode
- Add mode-specific idle dialogue phrases
- Clean up legacy code (~760 lines removed from gotchi.cpp and app_gotchi.cpp)
- Add 6 new manager classes for clean OOP architecture:
  - NetworkDatabase: Network/handshake/BLE storage
  - HandshakeParser: EAPOL 4-way handshake parsing
  - WifiScanner: WiFi promiscuous mode + channel hopping
  - DeauthManager: Deauth frame sending
  - BLEScanner: BLE GAP scanning
  - ModeManager: Mode state machine

- Complete UI overhaul with box-style headers and grid displays:
  - All 9 modes now have colored header boxes with dynamic data
  - SCOUT/HUNT: Show top 3 networks by signal strength
  - WARDIVE: Signal distribution boxes (Strong/Medium/Weak)
  - BLE_SCAN: Formatted device list with full MAC addresses
  - SPECTRUM: 14-channel heatmap
  - STATS: Full-screen stats display
  - ROGUE: Enhanced display with target info + warnings
  - IDLE: Rest state UI
  - CONFIG: Config mode instructions

- Enable dialogue for all modes (was disabled for some)
- Fix SCOUT mode to use sniff mode (was using single scan)
- gotchi.cpp reduced from ~1325 to ~335 lines

- README updated with new file structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant