Rewire GPIO↔HMC472A so GPIO(n) = step bit (n-1): GPIO1→V6(0.5dB), GPIO2→V5(1dB), ... GPIO6→V1(16dB) This enables single-instruction GPIO updates: GPIO.out_w1tc = (step & 0x3F) << 1 GPIO.out_w1ts = (~step) & 0x7E Replaces 28-line loop with 4-line bitwise code.
Description
HMC472A digital RF attenuator controller — ESP32-S3 firmware with USB CDC serial and WiFi REST API
Languages
C++
59.5%
CSS
11.6%
JavaScript
11.4%
HTML
9.6%
C
6.5%
Other
1.4%