This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fibonacci_fsm(limit=10): | |
| # --- Initial Configuration --- | |
| state = "START" | |
| result = [] | |
| a, b = 0, 1 | |
| while state != "END": | |
| if state == "START": | |
| # Initial state: prepare the list and move to generating | |
| result = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| MESHTASTIC DM PING-PONG BOT | |
| Requirement: pip install meshtastic | |
| Usage: Connect device via USB and run script. | |
| """ | |
| import meshtastic.serial_interface | |
| from pubsub import pub | |
| import time |