RepRapFirmware 2.02 and later can be used to control the motion components of a DLP printer, accepting commands via the USB port from nanoDLP software running on a PC, Raspberry Pi or similar via the USB port.
Use the following command in config.g to set nanoDLP compatibility:
M555 P6
This instructs RepRapFirmware to return Marlin-compatible responses, and also to delay returning an OK response to G0 and G1 commands until the movement is complete. See M555 in the GCode dictionary.
Most commands sent by nanoDLP are either configurable in nanoDLP or are standard G- and M-codes. However, nanoDLP also uses two poorly-documented commands. These are M650 (set peel move parameters), and M651 (execute peel move). A peel move is a typically a tilting movement of the resin tank that separates the freshly-exposed film of resin from the bottom of the tank.
The handling of these commands in RepRapFirmware depends on the firmware version: