PWM auf Pins 0 bis 20

This commit is contained in:
2026-07-04 02:44:36 +02:00
parent 5234c8d23d
commit 1f4b353f6c
12 changed files with 392 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#pragma once
// Erste 16 Kanaele: HW-PWM auf GP0..GP15 (8 Slices, je 2 Kanaele).
#define PWM_HW_FIRST_PIN 0
#define PWM_HW_COUNT 16
// Kanaele 16..20: PIO-PWM auf GP16..GP20 (5 State Machines).
#define PWM_PIO_FIRST_PIN 16
#define PWM_PIO_COUNT 5
#define PWM_TOTAL_COUNT (PWM_HW_COUNT + PWM_PIO_COUNT)