Skip to content

Instantly share code, notes, and snippets.

View anrv90's full-sized avatar

Andoni Renart anrv90

View GitHub Profile
@anrv90
anrv90 / fibonacci_fsm.py
Created January 10, 2026 15:34
This Python script implements a Fibonacci sequence generator modeled as a Finite State Machine (FSM).
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 = []
@anrv90
anrv90 / meshtastic-dm-autopong.py
Created January 10, 2026 11:27
A Python script for Meshtastic devices that automatically responds with 'PONG' to private 'PING' messages received via serial interface.
"""
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