Skip to content

Add Freenove FNK0104S board support - #212

Merged
Keralots merged 2 commits into
Keralots:mainfrom
catpamallorca-prog:freenove-fnk0104s
Nov 26, 2026
Merged

Keralots merged 2 commits into
Keralots:mainfrom
catpamallorca-prog:freenove-fnk0104s

Conversation

@catpamallorca-prog

Copy link
Copy Markdown
Contributor

Summary

Adds community board support for the Freenove FNK0104S ESP32-S3 development board.

This implementation follows the requested board integration approach, using a dedicated PlatformIO environment and a board-specific LovyanGFX configuration.

Hardware

  • MCU: ESP32-S3 N16R8
  • Flash: 16 MB
  • PSRAM: 8 MB Octal
  • Display: 4.0" ST7796 SPI, 320×480
  • Touch controller: FT6336 capacitive touch

Display pinout

  • SCLK: GPIO 12
  • MOSI: GPIO 11
  • CS: GPIO 10
  • DC: GPIO 46
  • Backlight: GPIO 45
  • MISO: Not connected
  • LCD reset: No dedicated GPIO

Touch pinout

  • SDA: GPIO 16
  • SCL: GPIO 15
  • Reset: GPIO 18
  • Interrupt: GPIO 17

Display configuration

  • Native resolution: 320×480.
  • Landscape orientation uses the existing display rotation setting.
  • Panel inversion enabled, following the Freenove hardware demo.
  • SPI write frequency configured at 40 MHz.

Other peripherals

  • Audio: The board includes an ES8311 audio codec. Audio support is not implemented in this PR.
  • SD card: Support not implemented in this PR.
  • Battery monitoring: Support not implemented in this PR.

Implementation

  • Adds the dedicated freenove_fnk0104s PlatformIO environment in boards/freenove_fnk0104s.ini.
  • Adds the board-specific LovyanGFX class in src/lgfx_boards.h.
  • Adds the required board configuration in include/config.h.
  • Registers the new environment in platformio.ini.
  • Keeps the existing DISPLAY_320x480 layout unchanged.

Build verification

Successfully compiled with:

platformio run -e freenove_fnk0104s

No LED strip functionality is included in this PR. It will be submitted separately after this board support contribution is merged.

@Keralots Keralots self-assigned this Nov 25, 2026
- BOARD_IS_BRO_FREENOVE -> BOARD_IS_FNK0104S, LGFX_BRO_FREENOVE -> LGFX_FNK0104S.
- LED deny-list, button and buzzer sanitizers keep user-picked pins off the
  display SPI, touch INT/RST, USB CDC and octal flash/PSRAM lines, like every
  other board.
- Env header in the style of the other boards/*.ini files.
- Community board row in the README (no photo yet).
@Keralots
Keralots merged commit c550b94 into Keralots:main Nov 26, 2026
@Keralots

Copy link
Copy Markdown
Owner

Merged - thanks! I renamed the board macro to BOARD_IS_FNK0104S, added the pin guards every other board has (LED / button / buzzer can't land on the display, touch, USB or PSRAM pins) and a README row.

Could you flash current main and confirm: colours are right, touch lands where you tap in portrait and landscape (the portal's Touch test button), and a reboot from the portal plus one OTA upload bring the screen back? Also a front photo of the board for the README, and if you know them, the ES8311 audio and microSD GPIOs so I can add them to the pin guards. Then PR 2 (LED strip) is welcome.

@catpamallorca-prog

Copy link
Copy Markdown
Contributor Author

Hi Keralots!

I've completed the hardware validation on my Freenove FNK0104S using the updated firmware.

All requested tests passed:

  • Display colours: Correct.
  • Touchscreen: Touch input tested in both portrait and landscape orientations. Touch detection and screen wake-up work correctly.
  • Portal reboot: Successful. The display restarted and came back online.
  • Manual OTA update: Successfully uploaded the FNK0104S firmware through the portal. The upload completed, the device rebooted automatically, and BambuHelper came back online and resumed displaying printer and AMS data correctly.

I've attached photos of the actual hardware, the working display and the successful firmware validation.

Additional GPIO information from the official Freenove examples for the FNK0104S (4-inch, 320x480):

  • ES8311 I2S: MCK GPIO4, BCK GPIO5, DINT GPIO6, DOUT GPIO8, WS GPIO7.
  • Audio amplifier enable: GPIO1.
  • ES8311 I2C: SCL GPIO15, SDA GPIO16.
  • MicroSD SD_MMC: CLK GPIO38, CMD GPIO40, D0 GPIO39, D1 GPIO41, D2 GPIO48, D3 GPIO47.

These pin assignments are taken from Freenove's official sample projects for this board.

Thanks again for merging the FNK0104S support and for your work on BambuHelper!

IMG_20261127_130240 IMG_20261127_130351 IMG_20261127_130248 IMG_20261126_014012 IMG_20261126_014002

Best regards,
catpamallorca-prog

Keralots added a commit that referenced this pull request Nov 28, 2026
ES8311 I2S (4-8), amp enable (1) and microSD SD_MMC (38-41, 47, 48)
pins from the Freenove samples are now denied for LED, button and
buzzer. Touch orientation is confirmed on hardware, so the board
gets tap zones like the other touch boards.
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.

2 participants