|
|
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 |
|
|
|
613611d37a
|
Add ESP32-S2 firmware for HMC472A attenuator control
PlatformIO/Arduino firmware for WEMOS/LOLIN S2 Mini:
- 6-bit GPIO control (GPIOs 1-6) with glitch-free register writes
- REST API: /status, /set, /config, /sweep endpoints
- Web UI with PCB green theme, slider, presets, pin visualization
- NVS persistence of attenuation setting across power cycles
- Sweep mode for automated attenuation stepping
- mDNS (attenuator.local), OTA updates, watchdog
|
2026-02-02 21:24:29 -07:00 |
|