反转Z轴+与-位置

This commit is contained in:
张开科 2024-07-15 09:51:07 +08:00
parent 56e0e2721e
commit 6d64f9440e

View File

@ -82,11 +82,11 @@ class Panel(ScreenPanel):
grid.attach(self.buttons["y+"], 1, 0, 1, 1) grid.attach(self.buttons["y+"], 1, 0, 1, 1)
grid.attach(self.buttons["y-"], 1, 1, 1, 1) grid.attach(self.buttons["y-"], 1, 1, 1, 1)
if self._config.get_config()["main"].getboolean("invert_z", False): if self._config.get_config()["main"].getboolean("invert_z", False):
grid.attach(self.buttons["z+"], 3, 1, 1, 1)
grid.attach(self.buttons["z-"], 3, 0, 1, 1)
else:
grid.attach(self.buttons["z+"], 3, 0, 1, 1) grid.attach(self.buttons["z+"], 3, 0, 1, 1)
grid.attach(self.buttons["z-"], 3, 1, 1, 1) grid.attach(self.buttons["z-"], 3, 1, 1, 1)
else:
grid.attach(self.buttons["z+"], 3, 1, 1, 1)
grid.attach(self.buttons["z-"], 3, 0, 1, 1)
grid.attach(self.buttons["home"], 0, 0, 1, 1) grid.attach(self.buttons["home"], 0, 0, 1, 1)
grid.attach(self.buttons["motors_off"], 2, 0, 1, 1) grid.attach(self.buttons["motors_off"], 2, 0, 1, 1)