Skip to content

Commit

Permalink
doc/hubs: add hub icons to toggle menu
Browse files Browse the repository at this point in the history
Also add icons for hubs we might support one day.
  • Loading branch information
laurensvalk committed Mar 25, 2020
1 parent 367b3e1 commit e3bf4da
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 8 deletions.
11 changes: 11 additions & 0 deletions doc/api/diagram_source/hubs.ldr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
0 Name: pupmotors
0 Author: Pybricks {laurens@pybricks.com}
0 !LICENSE MIT
1 15 -420 -56 -250 1 0 0 0 1 0 0 0 1 26910.dat
1 15 10 -80 140 1 0 0 0 1 0 0 0 1 28738.dat
1 71 -270 -40 630 1 0 0 0 1 0 0 0 1 22127.dat
1 15 200 -96 600 -1 0 0 0 1 0 0 0 -1 28739.dat
1 15 470 -16 -90 1 0 0 0 1 0 0 0 1 45601p02.dat
1 15 -800 -40 360 1 0 0 0 1 0 0 0 1 95646c01.dat
1 15 -1160 32 -310 1 0 0 0 1 0 0 0 1 53788c01.dat
1 71 -1340 -40 430 1 0 0 0 1 0 0 0 1 87576c01.dat
Binary file added doc/api/diagram_source/pupremote.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 14 additions & 6 deletions doc/api/hubs.rst
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
:mod:`hubs <pybricks.hubs>` -- Programmable Hubs
================================================

.. automodule:: pybricks.hubs
:no-members:
.. module:: pybricks.hubs

Select your platform hub using the buttons below.
Select your programmable hub using the buttons below.

.. content-tabs::

.. tab-container:: ev3brick
:title: EV3 Brick

|
.. figure:: ../api/images/ev3brick.png
:height: 15 em

.. include:: hubs_ev3brick.inc

.. tab-container:: movehub
:title: Move Hub

|
.. figure:: ../api/images/movehub.png
:height: 15 em

.. include:: hubs_movehub.inc

.. tab-container:: cityhub
:title: City Hub

|
.. figure:: ../api/images/cityhub.png
:height: 15 em

.. include:: hubs_cityhub.inc

.. tab-container:: cplushub
:title: Control+ Hub

.. figure:: ../api/images/cplushub.png
:height: 15 em
2 changes: 0 additions & 2 deletions doc/api/hubs_cityhub.inc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.. autoclass:: pybricks.hubs.CityHub
:no-members:

Usage of each built-in device is described below.

.. rubric:: Using the hub status light

.. automethod:: pybricks.hubs::CityHub.light.on
Expand Down
Binary file added doc/api/images/cityhub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/cplushub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/energymeter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/ev3brick.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/movehub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/nxtbrick.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/primehub.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/api/images/pupremote.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e3bf4da

Please sign in to comment.