nxt-python icon indicating copy to clipboard operation
nxt-python copied to clipboard

[FEATURE REQUEST]: Screen Drawing

Open MontyMole98 opened this issue 1 year ago • 1 comments

This project is cool, but I wish there was support for the LCD screen. This breaks down to these functions:

  • Line drawing, using the first two arguments as the points.
  • Printing RGF image files to the screen.
  • Printing raw pixel data to the screen at any X and Y coordinates, using any aspect ratio, all passed as arguments.
  • Printing text to the screen.
  • Clearing the screen.

Obviously this is just a request that suits my project's needs, especially because the base NXT programming software had support for these functions in some capacity. It would be much appreciated if this was added.

MontyMole98 avatar Mar 08 '24 20:03 MontyMole98

From the firmware, you have access to system command and direct command. There is no command for the LCD screen.

However, you have access to the “IOMAPs”, have a look at the nxt-screen example to see how it reads from the LCD, you can use the same technique to write to it.

https://github.com/schodet/nxt-python/blob/960ca036c08036395b1afb3486d455ef3e7d69ed/examples/nxt-screen.py#L31-L53

You can use your computer power to do anything, just avoid writing one pixel at a time.

Another option is to have a program running on the brick and use messages to communicate with it.

schodet avatar Mar 08 '24 21:03 schodet