feat: add M5Stack Unit C6L variant support#2632
Open
vistalba wants to merge 1 commit into
Open
Conversation
Add variant configuration for M5Stack Unit C6L (ESP32-C6, SX1262 LoRa, SSD1306 64x48 SPI display). Includes: - Board class with PI4IO I/O expander for LoRa RF control - DIO flash mode fix for ESP32-C6 bootloader compatibility - SSD1306 SPI display with custom minimal UITask for 64x48 - CustomSerialBLEInterface fix for correct BLE Connected status - All 4 firmware environments: companion (USB/BLE), repeater, room server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full support for the M5Stack Unit C6L (ESP32-C6 + SX1262 LoRa), including PI4IO I/O expander for RF switch control and a custom minimal UITask for the 64x48 SSD1306 SPI display.
Changes
New variant:
variants/m5stack_unit_c6l/UnitC6LBoard): PI4IO I/O expander (reset, direction, pull-up/pull-down), SPI bus management, display/RF switch initplatformio.ini): corrected pins (NeoPixel TX on 2, I2C SDA=10/SCL=8, SPI shared with LoRa)board_build.flash_mode = dio— fixes bootloop on ESP32-C6 rev v0.2 (see Added flash_mode=dio to avoid boot loop when flashing using merge.bin #2570)Display support (
SSD1306SPIDisplay)src/helpers/ui/SSD1306SPIDisplay.*spi_initializedflag)variants/m5stack_unit_c6l/companion/— shows PIN, scrolling node name, frequency, unread countShared fixes
src/helpers/esp32/SerialBLEInterface.cpp: fixed include"esp_mac.h"→<esp_mac.h>src/helpers/ui/DisplayDriver.h: addedMarqueeScrollerstruct