Laurens Valk
55c5790a48
doc/nxtdevices: fix typo
2020-04-24 10:50:34 +02:00
David Lechner
87c2b6857f
api: Use leading _ to hide internals in intellisense
...
Intellisense in VS Code (both jedi and ms python language server) picks
up all imported names and suggests them with equal priority for
code completion. By adding a leading underscore, intellisense lists
these with a lower priority, so they don't get in the way.
Also rename from builtins to _common while we are touching this to
better reflect the intention of the module (it contains types shared
by multiple modules, not builtin types like int).
2020-03-25 20:24:32 +01:00
David Lechner
166ce2109f
doc: Use verbs ending in s for functions/methods
...
The documentation currently has a mix of with and without the `s`.
Adding an `s` is consistent with most API documentation in general,
especially more modern documentation.
2020-03-24 12:11:53 +01:00
Laurens Valk
661de5f0fe
doc/*devices: improve rgb() docstring
2020-03-20 10:42:52 +01:00
Laurens Valk
9dd1f45ccd
doc: drop default argument in docstring
...
This is visible in the function definition, so no need to repeat it.
2020-03-15 20:35:36 +01:00
David Lechner
6ed6ec0378
api: remove empty () on class declarations
...
Python allows this syntax and some even consider it good style.
2020-03-12 12:46:09 -05:00
Laurens Valk
066983a5e1
LICENSE: Update year and authors
...
Also add SPDX-License-Identifier: MIT to API source files for clarity.
2020-03-05 10:33:48 +01:00
Laurens Valk
9c6d2267bd
api/nxtdevices/ColorSensor: add rgb and light
...
also, remove detection of brown color, because this is not supported
2020-02-14 19:26:05 +01:00
Laurens Valk
57a44265b8
api/nxtdevices: add VernierAdapter
2020-02-12 12:49:40 +01:00
Laurens Valk
a6e6de28b5
api/nxtdevices: update sound audible argument
...
rename to audible_only for a more precise description.
2020-01-14 21:27:01 +01:00
Laurens Valk
5a0dc278d0
api/nxtdevices: add Energy Meter
2020-01-14 20:17:43 +01:00
Laurens Valk
b1cb062c7c
api/nxtdevices: add Temperature Sensor
2020-01-14 20:16:40 +01:00
Laurens Valk
aed3823af1
api/nxtdevices: add Sound Sensor
2020-01-14 20:16:10 +01:00
Laurens Valk
7b7b69a141
api/nxtdevices: add Ultrasonic Sensor
2020-01-14 20:15:29 +01:00
Laurens Valk
23b8700773
api/nxtdevices: add Color Sensor
2020-01-14 20:14:56 +01:00
Laurens Valk
7f3ac46558
api/nxtdevices: add Light Sensor
2020-01-14 20:13:23 +01:00
Laurens Valk
19e4d3d36f
api/nxtdevices: add Touch Sensor
2020-01-14 20:12:27 +01:00
Laurens Valk
ad12d13355
api/nxtdevices: add module
2020-01-14 20:10:33 +01:00