:mod:`thingz.thingz_display.Raw` ================================ .. py:module:: thingz.thingz_display.Raw .. autoapi-nested-parse:: Thingz Display Raw .. py:class:: Raw Use the LCD to display graphical elements .. py:attribute:: Img :type: Raw.Img Class `Img` to create an image .. py:attribute:: Rect :type: Raw.Rect Class `Rect` to create a rectangle .. py:attribute:: Text :type: Raw.Text Class `Text` to create a text .. py:method:: show() -> None Show the raw interface .. py:method:: print(x: int, y: int, txt: str) -> None Print text at a given position :param int x: X position :param int y: Y position :param str txt: The text to print .. py:method:: print_bmp(x: int, y: int, path: str) -> None Print BMP file at a given position :param int x: X position :param int y: Y position :param str path: The path to the BMP file .. py:class:: Img(x: int, y: int, path: str, white_replacement: int) Create an image and print it to the screen :param int x: X position :param int y: Y position :param str path: Path to the BMP file :param int white_replacement: Color used to replace white pixels .. py:method:: show(show: bool) -> None Show/Hide the image :param bool show: Show the image if True hide if False .. py:method:: x(pos: int) -> None Set x position :param int pos: x position .. py:method:: y(pos: int) -> None Set y position :param int pos: y position .. py:method:: white_replacement_color(color: bool) -> None Change all white pixels to another color :param int color: color to use as replacement .. py:method:: get_show() -> bool Return True if the image is shown .. py:method:: get_x() -> int Get x position .. py:method:: get_y() -> int Get y position .. py:method:: get_width() -> int Get image width .. py:method:: get_height() -> int Get image height .. py:method:: get_white_replacement() -> int Get color used as white replacement .. py:class:: Rect(x: int, y: int, width: int, height: int, color: int) Create a rectangle and print it to the screen :param int x: X position :param int y: Y position :param int width: width :param int height: height :param int color: Color .. py:method:: show(show: bool) -> None Show/Hide the rectangle :param bool show: Show the rectangle if True hide if False .. py:method:: x(pos: int) -> None Set x position :param int pos: x position .. py:method:: y(pos: int) -> None Set y position :param int pos: y position .. py:method:: color(color: int) -> None Set rectangle color :param int color: color .. py:method:: get_show() -> bool Return True if the rectangle is shown .. py:method:: get_x() -> int Get x position .. py:method:: get_y() -> int Get y position .. py:method:: get_width() -> int Get image width .. py:method:: get_height() -> int Get image height .. py:method:: get_color() -> int Get color .. py:class:: Text(x: int, y: int, text: str, color: int) Create an image and print it to the screen :param int x: X position :param int y: Y position :param str text: text :param int color: color .. py:method:: show(show: bool) -> None Show/Hide the text :param bool show: Show the text if True hide if False .. py:method:: x(pos: int) -> None Set x position :param int pos: x position .. py:method:: y(pos: int) -> None Set y position :param int pos: y position .. py:method:: set_text(text: str) -> None Set text :param str text: text .. py:method:: get_show() -> bool Return True is text is shown else False .. py:method:: get_x() -> int Get x position .. py:method:: get_y() -> int Get y position .. py:method:: get_width() -> int Get text width .. py:method:: get_height() -> int Get text height .. py:method:: get_color() -> int Get text color .. py:method:: get_text() -> int Get text