Based on Pflichtenheft v2.2, documents the full system design including daemon, API, frontend, and infrastructure with agreed deviations (Axum 0.8, SQLx 0.8, Vite 6, Tailwind 4). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
549 B
Plaintext
28 lines
549 B
Plaintext
// Temporär in src/main.cpp einfügen zum Testen
|
|
// Ersetzt den kompletten Inhalt temporär
|
|
|
|
#include <Arduino.h>
|
|
#include <HCSR04.h>
|
|
|
|
#define TRIG_PIN 12
|
|
#define ECHO_PIN 13
|
|
|
|
HCSR04 distanceSensor(TRIG_PIN, ECHO_PIN);
|
|
|
|
void setup() {
|
|
Serial.begin(115200);
|
|
delay(2000);
|
|
Serial.println("HC-SR04 Test - NUR Sensor, kein LoRa");
|
|
Serial.println("====================================");
|
|
}
|
|
|
|
void loop() {
|
|
float distance = distanceSensor.dist();
|
|
|
|
Serial.print("Distanz: ");
|
|
Serial.print(distance);
|
|
Serial.println(" cm");
|
|
|
|
delay(1000);
|
|
}
|