Skip to main content

RPi App Framework Modular framework for all Raspberry Pi models (Pico 2 W with MicroPython/Thonny, full RPi 1-5 with Python). Installation For MicroPython/Pico (Thonny):

Copy the rpi_app_framework folder to /lib on your Pico.

For full Python/RPi:

pip install rpi-app-framework

Usage Create a main.py to start your app:

examples/simple_demo.py

from rpi_app_framework import RPIApp, PiHardwareAdapter import time

class SimpleDemo(RPIApp): """ Minimal demo that shows: • Board model detection • CPU temperature monitoring • On-board LED blinking Works on Pico 2 W and all full-size Raspberry Pi models. """

def setup(self):
    # Initialise the hardware adapter
    self.hw = PiHardwareAdapter(log_func=self.log)

    # Use the onboard LED (works on Pico and full RPi)
    self.status_led = self.hw.led("LED" if "Pico" in self.hw.model else 13)

    # Log startup info
    self.log(f"Running on: {self.hw.model}")
    self.log(f"Initial CPU temperature: {self.hw.cpu_temperature}°C")

def run(self):
    while self.running:
        # Blink the LED
        self.status_led.value(1)
        time.sleep(0.5)
        self.status_led.value(0)

        # Log temperature every 5 seconds
        self.log(f"CPU temperature: {self.hw.cpu_temp}°C")
        time.sleep(4.5)

if name == "main": SimpleDemo(max_log_files=10).start()

Compatibility

Pico 2 W (MicroPython): Uses machine for pins/PWM. Full RPi (Python): Uses RPi.GPIO and gpiozero for pins/PWM.

Features

RPIApp: Base class for app lifecycle and logging. DeviceManager: Base for hardware managers with logging. LEDSimple: Controls LEDs (on/off/blink). WiFiManager: Manages WiFi connections (Pico only). MotorDriverTB6612FNG: Controls dual DC motors. MicrodotManager: Runs a lightweight web server.

For example applications see projects at www.singerlinks.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpi_app_framework-0.1.5.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpi_app_framework-0.1.5-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file rpi_app_framework-0.1.5.tar.gz.

File metadata

  • Download URL: rpi_app_framework-0.1.5.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for rpi_app_framework-0.1.5.tar.gz
Algorithm Hash digest
SHA256 026d8a3288e877dd7ac06b098183deda60b08b5d996bab7250e50e166505ed5d
MD5 49825a0c51298e60908f6bbabd714b7b
BLAKE2b-256 3935cf679b2fc4e5f5d66f858794818a8630d9e0aeeb7609bf02097ef1617c2d

See more details on using hashes here.

File details

Details for the file rpi_app_framework-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for rpi_app_framework-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d845dbce999465fb029f9af8f01f847cd3b9543ecf2c8d9b97b5b46a990975a5
MD5 349321e8d20b7d690a7bc96c581c96ac
BLAKE2b-256 004b069b104d3fa383273393560a7fde6a801f03b9ad3f338174d45efb4ce648

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page