-
Datei
main.cpp
static constexpr int LED_PIN = 8; static constexpr int LED_COUNT = 1; static constexpr uint8_t LED_MAX_BRIGHTNESS = 200; #if LED_TYPE == 0 // Classic SuperMini blue LED is active-low (LOW = on). We drive brightness // via LEDC PWM on this channel. static constexpr bool LED_ACTIVE_LOW = true; static constexpr
-
Datei
usb.c
. #define USB_IRQ_NUMBER 20 // Buffer for sending characters, txLen must be 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ... #define USB_TXLEN 256 // Buffer for received characters, rxLen must be 128, 256, 512, 1024, 2048, ... #define USB_RXLEN 256 // Vendor and product ID of the USB device #define VID
in „STM32G484 USB CDC Code läuft nur wenn mit <= -O1 kompiliert“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.cpp
e.minDeviation_us = minD; e.maxDeviation_us = maxD; entries[entryHead] = e; entryHead = (entryHead + 1) % MAX_ENTRIES; if (entryCount < MAX_ENTRIES) entryCount++; // Rebuild global stats totalCrossings += cnt; totalMinutes++; globalSumDev
in „Datenlogger Pendeluhr“ · Mikrocontroller und Digitale Elektronik ·