MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / display_message

Method display_message

src/ext/makerbot_driver/Gcode/Parser.py:255–272  ·  view source on GitHub ↗

Given a comment, displays a message on the bot.

(self, codes, flags, comment)

Source from the content-addressed store, hash-verified

253 self.s3g.toggle_axes(makerbot_driver.Gcode.parse_out_axes(flags), False)
254
255 def display_message(self, codes, flags, comment):
256 """Given a comment, displays a message on the bot.
257 """
258 row = 0 # As per the gcode protocol
259 col = 0 # As per the gcode protocol
260 clear_existing = False # If false, clears the message buffer
261 last_in_group = True # If true, signifies this is the last in a group
262 wait_for_button = False # If true, signifies a button wait
263
264 self.s3g.display_message(
265 row,
266 col,
267 comment,
268 codes['P'],
269 clear_existing,
270 last_in_group,
271 wait_for_button,
272 )
273
274 def play_song(self, codes, flags, comment):
275 """Plays a song as a certain register on the bot.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected