PCB Design Basics


I reviewed the three files. They are intended to be used together:
  1. First file → main .ino program
  2. Second file → ui_assets.h for home/exhaust images
  3. Third file → volume_assets.h containing volume screens 0–30
The GPIO assignments are correct:
  • GPIO1/white/S2 → OPEN
  • GPIO2/yellow/S1 → QUIET/CLOSE
The volume is currently display-only and will not control the Joying yet.
Install the three files 1. Replace the main program
  1. Open your Arduino sketch.
  2. Select the .ino tab.
  3. Press Ctrl+A, then Delete.
  4. Open the first uploaded text file.
  5. Copy all its contents.
  6. Paste them into the empty .ino tab.
The top should read:

Cpp


#include <Arduino.h> #include <M5Dial.h> #include "ui_assets.h" #include "volume_assets.h"
2. Replace ui_assets.h
  1. Select your existing ui_assets.h tab.
  2. Press Ctrl+A, then Delete.
  3. Copy everything from the second uploaded file.
  4. Paste it into ui_assets.h.
3. Add volume_assets.h
  1. Use the Arduino tab menu and select New Tab.
  2. Name it exactly:

Text


volume_assets.h
  1. Copy everything from the third uploaded file.
  2. Paste it into that tab.
The volume file is extremely large, so Arduino may pause briefly while pasting or saving it.
Test safely
  1. Disconnect the Valvetronic remote wires initially.
  2. Confirm Arduino shows all three tabs:
    • Main .ino
    • ui_assets.h
    • volume_assets.h
  3. Click Verify.
  4. If verification succeeds, click Upload.
  5. Rotate the knob:
    • Clockwise should increase volume.
    • Counterclockwise should decrease it.
    • The volume screen should return home after 1.5 seconds.
  6. Single press should do nothing.
  7. Double-press should alternate the OPEN and QUIET screens.
This version removes Serial commands and only previews volume—it does not send radio commands yet. If verification fails, send only the final 20–30 lines of the error instead of the entire output.
everything i sent was already on the m5stack and it works
Understood—I misinterpreted the files as code you had not installed. Do not replace or change anything; your current three-file firmware is already the correct working version.
Next, test and note:
  • Clockwise increases volume and counterclockwise decreases it.
  • Volume screen responds on every detent without freezing.
  • It returns home after about 1.5 seconds.
  • Single press does nothing.
  • Double-press alternates OPEN and QUIET.
  • Exhaust outputs still operate correctly when reconnected.
The next development step is adding actual USB media-volume commands, but first test a normal USB keyboard with media keys on the Joying radio. If its volume keys work, we can add USB HID without changing the existing display design.
Check media-key support
Map exhaust state
Review firmware tabs

Tacoma M5Stack Dial Controller

Tacoma M5Stack Dial Controller thumbnail