diff --git a/doc/api/_images/ev3brick.png b/doc/api/_images/ev3brick.png new file mode 100644 index 0000000..ea81e0c Binary files /dev/null and b/doc/api/_images/ev3brick.png differ diff --git a/doc/api/_images/ev3messaging.svg b/doc/api/_images/ev3messaging.svg new file mode 100644 index 0000000..7cde160 --- /dev/null +++ b/doc/api/_images/ev3messaging.svg @@ -0,0 +1,688 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Server + + + + + + 'temp' + 25.3 + + + + + 'cond' + 'Sunny' + + + + + 'amb' + 35 + + + server = BluetoothMailboxServer()server.wait_for_connection(2)temp = NumericMailbox('temp', server)condition = TextMailbox('cond', server)ambient = NumericMailbox('amb', server)condition.send('Sunny') + + + client = BluetoothMailboxServer()client.connect('1:2:3:4:5')ambient = NumericMailbox('amb', client)ambient.send(35) + '1:2:3:4:5' + + + + Client A + + + client = BluetoothMailboxServer()client.connect('1:2:3:4:5')temp = NumericMailbox('temp', client)condition = TextMailbox('cond', client)temp.send(25.3) + + + Client B + + + diff --git a/doc/api/_images/newproject.svg b/doc/api/_images/newproject.svg deleted file mode 100644 index c789d81..0000000 --- a/doc/api/_images/newproject.svg +++ /dev/null @@ -1,294 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - Choose a location for yourproject in the pop-up window - - 4 - - - - - Open Pybricks tab - - 1 - - - - Create new project - - 2 - - - - - Choose a project name and press enter - - 3 - - - getting_started - diff --git a/doc/api/ev3messaging.rst b/doc/api/ev3messaging.rst index 9142d53..2f08ea8 100644 --- a/doc/api/ev3messaging.rst +++ b/doc/api/ev3messaging.rst @@ -6,6 +6,18 @@ .. currentmodule:: pybricks.ev3messaging +Introductory text. An example network is shown in :numref:`fig_ev3messaging`. + +.. _fig_ev3messaging: + +.. figure:: images/ev3messaging_label.png + :width: 90 % + :alt: ev3messaging + :align: center + + An example network with one server and two clients. + + Connections ------------ diff --git a/doc/api/startinstall.rst b/doc/api/startinstall.rst index 173531c..910c227 100644 --- a/doc/api/startinstall.rst +++ b/doc/api/startinstall.rst @@ -1,13 +1,3 @@ Intro =================== -See :numref:`fig_newproject`. - -.. _fig_newproject: - -.. figure:: images/newproject_label.png - :width: 90 % - :alt: newproject - :align: center - - Creating a new project