|
1 | | - |
2 | | - |
3 | 1 | .. image:: images/pyx2cscope_logo.png |
4 | 2 | :width: 180 |
5 | 3 | :alt: pyx2cscope |
@@ -28,105 +26,21 @@ It allows user to: |
28 | 26 | :alt: MCU<->PC |
29 | 27 | :align: center |
30 | 28 |
|
31 | | -Installation |
32 | | -============ |
33 | | - |
34 | | -Create a virtual environment and install pyx2cscope using the following commands (Windows): |
35 | | - |
36 | | -.. code-block:: python |
37 | | -
|
38 | | - python -m venv .venv |
39 | | - .venv\Scripts\activate |
40 | | - pip install pyx2cscope |
41 | | -
|
42 | | -
|
43 | | -It is highly recommended to install python libraries underneath a virtual environment. |
44 | | - |
45 | | -Nevertheless, to install at system level, we advise to install it on user area. (Global insallation may not work.) |
46 | | -Execute the following lines: |
47 | | - |
48 | | -.. code-block:: python |
49 | | - |
50 | | - pip install --user pyx2cscope |
51 | | -
|
52 | | -.. code-block:: python |
53 | | -
|
54 | | - pip install --upgrade pyx2cscope |
55 | | -
|
56 | | -In case of unexpected issues executing pyx2cscope try to reinstall manually: |
57 | | - |
58 | | -.. code-block:: python |
59 | | - |
60 | | - pip uninstall pyx2cscope |
61 | | - pip cache purge |
62 | | - pip install --user pyx2cscope |
63 | | -
|
64 | | -
|
65 | | -After install you may check the current pyx2cscope version, in a terminal, run the following command: |
66 | | - |
67 | | -.. code-block:: python |
68 | | -
|
69 | | - pyx2cscope --version |
70 | | -
|
71 | | -For help or additional command line options, type: |
72 | | - |
73 | | -.. code-block:: bash |
74 | | -
|
75 | | - pyx2cscope --help |
76 | | -
|
77 | | -The log level used by pyX2Cscope is ERROR by default, possible values are |
78 | | -DEBUG, INFO, WARNING, ERROR, and CRITICAL. To set a different log level start |
79 | | -pyX2Cscope with argument **-l** or **--log-level** |
80 | | - |
81 | | -.. code-block:: bash |
82 | | -
|
83 | | - pyx2cscope --log-level DEBUG |
84 | | -
|
85 | | -Usage |
86 | | ------ |
87 | | - |
88 | | -You may try pyX2Cscope either as an API to read and write values from/to variables in a running Microchip |
89 | | -microcontroller, or as a Graphical User Interface (GUI), or both. |
90 | | - |
91 | | -The GUI interface |
92 | | -~~~~~~~~~~~~~~~~~ |
93 | | - |
94 | | -There are currently two implementations, one based on Qt and one Browser based. These GUIs are more examples |
95 | | -on how to implement your own custom interfaces than an official user interface. |
96 | | - |
97 | | -To execute Qt version, type: |
98 | | - |
99 | | -.. code-block:: bash |
100 | | - |
101 | | - pyx2cscope |
102 | | -
|
103 | | -To execute the Browser based version type: |
104 | | - |
105 | | -.. code-block:: bash |
106 | | -
|
107 | | - pyx2cscope -w |
108 | | -
|
109 | | -
|
110 | | -The API interface |
111 | | -~~~~~~~~~~~~~~~~~ |
112 | | - |
113 | | -The API interface is managed over the X2CScope class. |
114 | | -The simplest example of the API is depicted below: |
115 | | - |
116 | | -.. literalinclude:: ../pyx2cscope/examples/simplest.py |
117 | | - :language: python |
118 | | - :linenos: |
119 | 29 |
|
120 | | -Following you will find specific information on the API, GUIs, and Firmware implementation. |
| 30 | +Following you will find specific information about Installation, API, GUIs, and Firmware implementation. |
121 | 31 | See the section examples to check some of the usages you may get by pyX2Cscope. |
122 | 32 |
|
123 | 33 | .. toctree:: |
124 | | - :maxdepth: 3 |
| 34 | + :maxdepth: 1 |
125 | 35 | :caption: Contents: |
126 | 36 |
|
127 | | - how_to |
| 37 | + install.rst |
| 38 | + scripting.rst |
| 39 | + gui_qt.md |
| 40 | + gui_web.md |
128 | 41 | FW_Support |
129 | 42 | example |
| 43 | + development.md |
130 | 44 |
|
131 | 45 | Indices and tables |
132 | 46 | ================== |
|
0 commit comments