Add Radiomaster Bandit & Radiomaster Bandit Nano support#1676
Add Radiomaster Bandit & Radiomaster Bandit Nano support#1676gjelsoe wants to merge 18 commits intomeshcore-dev:devfrom
Conversation
Added support for 5-Way analog joystick. Added Custom Sh1115 OLED driver. Added NeoPixels support for Radiomaster Bandit. Power output 20-30 dbm (100mW-1000mW). Changed so Analog joystick can be used in UI. Changed so NeoPixels is used for new Message. (Color can be defined). Radiomaster Bandit Micro uses the same code as Nano.
If put in Hibernation it would not wakeup
weebl2000
left a comment
There was a problem hiding this comment.
Thanks for adding Bandit support — PA power control and the joystick driver look solid. Found one bug that will corrupt memory at runtime, plus a few smaller items.
| #elif defined(PIN_USER_JOYSTICK) | ||
| // For analog joystick, you'd need to use the center button GPIO | ||
| esp_sleep_enable_ext0_wakeup((gpio_num_t)PIN_USER_JOYSTICK, LOW); |
There was a problem hiding this comment.
GPIO39 is the analog joystick ADC pin on a resistor divider. ext0 triggers on a digital level — does center-press pull this pin fully to GND? If not, the device may fail to wake from power-off. Same issue in BanditNanoBoard.h.
| lib_deps = | ||
| ${esp32_base.lib_deps} | ||
| adafruit/Adafruit NeoPixel@^1.10.0 | ||
| https://github.com/gjelsoe/Adafruit_SH110x |
There was a problem hiding this comment.
This depends on your personal fork. Any plan to upstream the SH1115 driver to Adafruit, or vendor it into the repo? If the fork goes stale it blocks builds for this board.
There was a problem hiding this comment.
Made a PR for it, we can change it when accepted.
Co-authored-by: Wessel <wessel@weebl.me>
Co-authored-by: Wessel <wessel@weebl.me>
Co-authored-by: Wessel <wessel@weebl.me>
Co-authored-by: Wessel <wessel@weebl.me>
Co-authored-by: Wessel <wessel@weebl.me>

This PR adds support for Radiomaster Bandit and Bandit Nano.
It also includes UI Helper for the Joystick that both versions have.
Shared Hardware.
Linear interpolation between calibration points for smooth 20-30 dBm output
Automatic calculation of SX1276 power + DAC voltage for target output
4-point manufacturer calibration table for Radiomaster Bandit and Bandit Nano.
Radiomaster Bandit Only.