Ryan Malloy 86a5db5b08 Optimize pin mapping for direct bitwise GPIO ops
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.
2026-02-03 00:28:33 -07:00
Description
HMC472A digital RF attenuator controller — ESP32-S3 firmware with USB CDC serial and WiFi REST API
4.8 MiB
Languages
C++ 59.5%
CSS 11.6%
JavaScript 11.4%
HTML 9.6%
C 6.5%
Other 1.4%