Cnc pendant

The pendants on Amazon will not work with Marlin. You have a couple of choices. If all you want is a joystick for control, Marlin has built-in logic for a joystick. If you want something more robust, than most of the pendants I’ve seen use a second microcontroller, like an Arduino, and send g-code through serial connections. They are DIY projects, though there are some published designs you can use as a starting point. What control board do you have?