diff --git a/components/display/sdl.rst b/components/display/sdl.rst index c075dfc77..3e30ad60c 100644 --- a/components/display/sdl.rst +++ b/components/display/sdl.rst @@ -17,14 +17,13 @@ than compiling for and flashing a microcontroller target system. .. code-block:: yaml # Example configuration entry + esphome: + name: sdl + host: - mac_address: "62:23:45:AF:B3:DD" display: - platform: sdl - id: sdl_display - update_interval: 1s - auto_clear_enabled: false show_test_card: true dimensions: width: 450 @@ -95,13 +94,7 @@ Linux instructions above. See https://learn.microsoft.com/en-us/windows/wsl/inst Build and run ------------- -The ``esphome`` command will not automatically run the build file on the ``host`` platform. Instead use ``esphome compile yourfile.yaml`` -then locate the executable file called ``program`` within the ``.esphome`` build tree: - -.. code-block:: sh - - `find .esphome -name program` - +The ``esphome run yourfile.yaml`` command will compile and automatically run the build file on the ``host`` platform. See Also -------- diff --git a/components/host.rst b/components/host.rst index 38897cd87..1013bdd30 100644 --- a/components/host.rst +++ b/components/host.rst @@ -23,17 +23,23 @@ configure wifi - network will automatically be available using the host computer # Example configuration entry host: - mac_address: "98:35:69:ab:f6:79" + mac_address: "06:35:69:ab:f6:79" Configuration variables: ------------------------ - **mac_address** (**Optional**, MAC address): A dummy MAC address to use when communicating with HA. +Build and run +------------- + +The ``esphome run yourfile.yaml`` command will compile and automatically run the build file on the ``host`` platform. + See Also -------- +- :ref:`SDL display ` - :doc:`esphome` - :doc:`/components/time/host` - :ghedit:`Edit`