XL1509 is not a Tuya MCU. It's a step down converter. It only powers your device. It converts 5V or 12V (depending on your device) to 3.3V for BK7231.
Please:
1. take your multimeter
2. set the continuity test mode so it beeps when probes are shorted
3. put one probe here:
4. with other probe, check each CB3S pin:
5. check all of those pins from CB3S, at which one do you get a "beep" ? Which is connected to button?
Pin number | Symbol | I/O type | Function |
1 | RST | I | Low-level reset, high level active (the pin has been pulled high internally), correspond to CEN of the IC | 2 | ADC3 | AI | ADC pin, which corresponds to P23 of the IC | 3 | CEN | I | Enabling pin, which is pulled high internally to be compatible with other modules | 4 | P14 | I/O | A common GPIO interface, which corresponds to P14 of the IC | 5 | P26 | I/O | GPIOP_26, which corresponds to P26 of the IC, PWM 5 | 6 | P24 | I/O | GPIOP_24, which corresponds to P24 of the IC, PWM 4 | 7 | P6 | I/O | GPIOP_6, which corresponds to P6 of the IC, PWM 0 | 8 | VCC | P | Power supply pin (3.3V) | 9 | GND | P | Power supply reference ground | 10 | P9 | I/O | GPIOP_9, which corresponds to P9 of the IC, PWM 3 | 11 | TXD2 | I/O | UART2_TXD (used to display the module internal information), which corresponds to P0 of the IC | 12 | CSN | I/O | Production test control pin. If it is used as a common I/O pin, it must be connected to the VCC externally. Do not connect it to the ground before the module is powered on. | 13 | P8 | I/O | GPIOP_8, which corresponds to P8 of the IC, PWM 2 | 14 | P7 | I/O | GPIOP_7, which corresponds to P7 of the IC, PWM 1 | 15 | RXD1 | I/O | UART1_RXD (user serial interface), which corresponds to P10 of the IC. Do not connect it to the VCC. By default, the MCU serial port should be in low-level or high-impedance state. | 16 | TXD1 | I/O | UART1_TXD (user serial interface), which corresponds to P11 of the IC. Do not connect it to the VCC. By default, the MCU serial port should be in low-level or high-impedance state. | 17 | ADC3 | AI | (Not recommended. If needed, please use Pin 2) ADC port, which corresponds to P23 of the IC. Programmed SPI | 18 | P22 | I/O | (Not recommended ) GPIOP_22, which corresponds to P22 of the IC. Programmed SPI | 19 | CSN | I/O | The pull-up resistor is needed during usage of customers. Do not connect it to the ground before the module is powered on. Correspond to P21 of the IC. | 20 | P20 | I/O | (Not recommended. ) GPIOP_20, which corresponds to P20 of the IC. Programmed SPI |
Also please post a screenshot from OpenBeken WWW panel so I can make sure that everything else is ok.