Skip to content

Conversation

tarontop
Copy link
Contributor

@tarontop tarontop commented Aug 21, 2025

Add support for IoTorero Ethernet controller

https://www.athom.tech/blank-1/ethernet-wled-esp32-addressable-dmx-led-strip-controller

Summary by CodeRabbit

  • Style
    • Updated Ethernet Type label in Settings: “ESP32Deux/RGB2Go” is now “IoTorero/ESP32Deux/RGB2Go.”
    • Reordered this option to appear immediately after “None (0)” for quicker access.
    • No functional changes; other options remain unchanged.
    • Improves clarity and consistency for users selecting compatible hardware.

Copy link
Contributor

coderabbitai bot commented Aug 21, 2025

Walkthrough

The Ethernet Type dropdown in wled00/data/settings_wifi.htm was updated: option value 6 was relabeled to "IoTorero/ESP32Deux/RGB2Go" and repositioned directly after the "None (0)" option; the original entry for value 6 was removed from its previous position. No other logic or structure changed.

Changes

Cohort / File(s) Change summary
Ethernet dropdown update
wled00/data/settings_wifi.htm
Renamed Ethernet option value 6 to "IoTorero/ESP32Deux/RGB2Go", moved it immediately after "None (0)", and removed its prior occurrence. No other HTML or scripts altered.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~6 minutes

Possibly related PRs

  • Update RGB2Go Ethernet naming #4780 — Also modifies the Ethernet dropdown option with value "6", changing its label to "RGB2Go"; overlaps in file and option, indicating related intent.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8baa6a4 and 5cb8dc3.

📒 Files selected for processing (1)
  • wled00/data/settings_wifi.htm (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • wled00/data/settings_wifi.htm
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: wled_build / Build Environments (esp32s3dev_16MB_opi)
  • GitHub Check: wled_build / Build Environments (usermods)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
wled00/const.h (2)

355-355: Keep count and initializer array in lockstep (add a compile-time guard).

Bumping WLED_NUM_ETH_TYPES to 14 looks correct given the added IoTorero entry. To prevent future mismatches between this constant and ethernetBoards[] size, add a static_assert right after the array definition in network.cpp.

Add this (outside the changed lines, in wled00/network.cpp right after ethernetBoards[]):

// Guard against mismatches between enum space and initializer table
static_assert(
  WLED_NUM_ETH_TYPES == (sizeof(ethernetBoards) / sizeof(ethernetBoards[0])),
  "WLED_NUM_ETH_TYPES mismatch with ethernetBoards[] entries"
);

370-370: Unify macro casing with the rest (prefer screaming snake).

Other Ethernet macros use all-caps with underscores. Consider standardizing the new one to WLED_ETH_IOTORERO and keeping a temporary alias to avoid breaking any in-flight references.

Apply this diff:

-#define WLED_ETH_IoTorero         13
+#define WLED_ETH_IOTORERO         13
+// Temporary alias for consistency with existing PRs/forks that may reference mixed-case name
+#define WLED_ETH_IoTorero         WLED_ETH_IOTORERO
wled00/data/settings_wifi.htm (1)

261-261: Label and ordering nit: match existing naming style and position.

  • Label: Other entries avoid hyphens in product names; suggest “IoTorero Ethernet Controller” for consistency.
  • Order: Consider positioning the option near related entries (by numeric value or alphabetically). Placing value="13" after value="12" (LILYGO T-POE Pro) keeps the list stable and easier to scan.

Apply this diff for the label (reordering is optional and not shown here):

-        <option value="13">IoTorero-ETH-Controller</option>
+        <option value="13">IoTorero Ethernet Controller</option>
wled00/network.cpp (1)

149-157: Verify IoTorero pinout, PHY address, and clock mode before merging.

The entry matches common LAN8720 setups (MDC=23, MDIO=18, ETH_CLOCK_GPIO17_OUT) and uses eth_power = -1 (no power/reset pin). Please confirm against the board’s schematic:

  • PHY address: 0 vs 1 often varies by board; ensure 1 is correct here.
  • eth_power: If the board exposes a PHY power/reset pin, set it accordingly instead of -1 to benefit from the reset logic.
  • Clock: Confirm the board requires GPIO17_OUT (50MHz output) vs GPIO0_IN/OUT.

Optionally, add a link comment to the board’s schematic/product page (similar to the LilyGO block) for future maintainers.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 1fb9eb7 and 8baa6a4.

📒 Files selected for processing (3)
  • wled00/const.h (2 hunks)
  • wled00/data/settings_wifi.htm (1 hunks)
  • wled00/network.cpp (1 hunks)

@kilrah
Copy link
Contributor

kilrah commented Aug 29, 2025

Maybe just add to "ESP32Deux/RGB2Go Tetra" since it's the same def?

@netmindz
Copy link
Member

yeah if @kilrah is correct, just update the name in the dropdown, don't add a duplicate type

Copy link
Member

@netmindz netmindz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo need for new definition, just updated naming

@tarontop tarontop requested a review from netmindz September 1, 2025 03:27
@netmindz netmindz merged commit 4c948cc into wled:main Sep 1, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants