Laurens Valk
1eb75e24e7
api/parameters/Color: generalize color type
...
First step towards making a color type with HSV representation.
Colors such as Color.RED or Color.BLUE continue to exist, but now you
can also define your own colors:
DARK_RED = Color(h=0, s=100, v=50)
2020-08-12 12:18:24 +02:00
Laurens Valk
be8592f096
doc/pupdevices/PFMotor: Documentation and examples
2020-08-11 12:13:06 +02:00
Laurens Valk
4d88fbbbd2
api/pupdevices/PFMotor: DCMotor functionality
...
This replaces the on-off method in ColorDistanceSensor.remote()
with a PFMotor class that works just like the DCMotor class. This
provides much more functionality without having to invent a new API.
2020-08-11 12:05:53 +02:00
Laurens Valk
70ffbfa4f3
doc/parameters/Color: sort colors by hue/value
2020-08-10 11:39:56 +02:00
Laurens Valk
6aa6059974
doc/pupdevices: add Motor action examples
2020-07-21 16:14:35 +02:00
Laurens Valk
98f247688e
doc/pupdevices: add Motor measuring examples
2020-07-21 14:50:26 +02:00
Laurens Valk
51f9d916e0
doc/pupdevices: add Motor init examples
2020-07-21 14:50:26 +02:00
Laurens Valk
8a9386ffc5
doc/pupdevices: add DCMotor examples
2020-07-21 14:50:26 +02:00
Bert
bcd44dad84
doc/start_pup: fix mixed http and https contents
...
Fixes #106 .
2020-07-19 21:47:11 +02:00
Laurens Valk
ac96985c71
doc/pupdevices/ForceSensor: add examples
2020-07-13 15:40:59 +02:00
Laurens Valk
b98f487f3c
doc/pupdevices/ColorSensor: add examples
2020-07-13 14:24:57 +02:00
Laurens Valk
42917f14ef
doc/parameters: fix link to move hub
...
This is no longer a generic hub reference
2020-07-12 13:17:45 +02:00
Laurens Valk
938c62430f
doc/hubs: remove content tabs
...
This caused links not to work to anything other than the default tab.
2020-07-12 13:11:38 +02:00
Laurens Valk
6132ae66da
doc/pupdevices/ColorDistanceSensor: add examples
2020-07-11 19:40:00 +02:00
Laurens Valk
a02c7023e5
doc/pupdevices/ColorDistanceSensor: group methods
...
We are already using a rubric for the lights, so add two more to better
group the many methods of this sensor.
2020-07-11 17:09:49 +02:00
Laurens Valk
d15aa22131
doc/pupdevices/Light: and blink and fade examples
2020-07-11 13:00:28 +02:00
Laurens Valk
19009d1637
doc/pupdevices: InfraredSensor, TiltSensor example
2020-07-11 12:46:30 +02:00
Laurens Valk
4dbaf5f68e
doc/pupdevices/UltrasonicSensor: math example
2020-07-10 13:06:22 +02:00
Laurens Valk
af2b1c66c9
doc/pupdevices/UltrasonicSensor: add example
2020-07-10 12:42:20 +02:00
Laurens Valk
f26d750fbf
doc/ev3devices/InfraredSensor: document mode delay
2020-07-10 11:46:04 +02:00
Laurens Valk
6e6c8956b9
doc/start_pup: clean up custom firmware steps
2020-07-10 11:35:39 +02:00
Laurens Valk
80a426bc4f
doc/start_pup: update instructions
...
- We no longer require a password
- We support more hubs
- Mention known key issues
- Simplify Chrome 85 discussion
- Add instructions to unplug cables prior to update
2020-07-10 11:21:12 +02:00
Laurens Valk
93da01c7ce
api/pupdevices/ColorDistanceSensor: add hsv
...
The hsv and color_map methods are the same as for the SPIKE ColorSensor class, except for the surface kwarg.
2020-07-07 14:07:35 +02:00
Laurens Valk
8078b6febb
doc/_common/ColorLight: docstring clean up
...
This adds a (commented out) preview of the methods to the city hub light
2020-07-07 09:44:16 +02:00
Laurens Valk
8a43dc936a
doc/signaltypes: add hue placeholder
...
We will have to add a helpful diagram, but having the placeholder allows us to link to it already.
2020-07-07 09:44:16 +02:00
Laurens Valk
d66e18b113
api/pupdevices: add TiltSensor
...
This class and its methods are subject to change when the complete
API for IMUs is introduced.
2020-07-01 13:33:36 +02:00
Laurens Valk
55fe666dac
api/pupdevices: add InfraredSensor
2020-07-01 12:02:13 +02:00
David Lechner
3554814c86
config: add Pybricks favicon
2020-06-17 13:38:22 -05:00
David Lechner
70cc605b56
config: update version to 3.0
...
We are working on the v3.0 release now.
2020-06-17 13:04:06 -05:00
Laurens Valk
0779b8df16
doc/pupdevices: workaround to show class attribute
...
We are using an older version of Sphinx which does not support
autodoc of inherited class attributes yet. This works
around it by just referencing the EV3 attribute, which does work.
2020-06-14 15:39:04 +02:00
Laurens Valk
ecc30c2d92
doc/start_pup: add imports to example
...
This reflects a firmware update that makes it more consistent with
pybricks-micropython for EV3. Making imports explicit is also more
Pythonic. This will make it clearer when some classes are not available
on some hubs.
2020-06-09 14:28:32 +02:00
Laurens Valk
80840396aa
api/pupdevices: add Powered Up Light
2020-06-08 15:26:19 +02:00
David Lechner
c536081dea
doc/start_pup: fix line too long lint error
2020-06-06 13:47:28 -05:00
David Lechner
87a488e790
doc/start_pup: update chrome download link
...
A new dev build was released for all platforms yesterday with the required patches.
2020-06-06 11:15:41 -05:00
Laurens Valk
90647e25dd
doc/start_pup: update chrome release schedule
2020-06-05 16:17:23 +02:00
Laurens Valk
01c6e29dd5
doc/start_pup: add note about password
2020-06-05 15:56:04 +02:00
Laurens Valk
1eac0972ac
api/hubs: add CPlusHub
2020-06-05 15:56:04 +02:00
Laurens Valk
ce087f5330
doc/index: fix pup link
2020-06-05 15:56:04 +02:00
Laurens Valk
9e06245860
doc/pup_start: basic run instructions
2020-06-05 15:56:04 +02:00
Laurens Valk
4b9cedb444
doc/start_pup: add install instructions
2020-06-05 15:56:04 +02:00
Laurens Valk
a99c4328fc
doc/start_pup: explain firmware restore
2020-06-05 15:56:04 +02:00
Laurens Valk
07b4b5b783
doc/start_pup: instructions for permanent program
2020-06-05 15:56:04 +02:00
Laurens Valk
13be26443b
doc/start_pup: add firmware install video
2020-06-05 15:56:04 +02:00
Laurens Valk
e0ac54ec0a
api/pupdevices/ForceSensor: add methods
2020-05-27 13:58:30 +02:00
Laurens Valk
8273c00881
api/pupdevices/UltrasonicSensor: add methods
...
This is identical to the EV3 Ultrasonic Sensor methods.
2020-05-27 13:58:30 +02:00
Laurens Valk
4da7b456bb
api/pupdevices: initial color sensor hsv api
...
Provide a simple yet powerful way to calibrate the color() method.
2020-05-27 13:58:30 +02:00
Laurens Valk
7498751ee3
doc/pupdevices: add diagrams with light indices
...
Make this clear once and for all.
This order comes from the sensor itself.
2020-05-27 13:58:30 +02:00
Laurens Valk
a8b0306afe
doc/pupdevices: flip ultrasonic sensor diagram
2020-05-27 13:58:30 +02:00
Laurens Valk
2dd133d5e5
api/pupdevices: add ForceSensor
...
Initial class without any methods for the SPIKE Force Sensor
2020-05-27 13:58:30 +02:00
Laurens Valk
e67c048b18
api/pupdevices: add UltrasonicSensor
...
Initial class without any methods for the SPIKE Ultrasonic Sensor
2020-05-27 13:58:30 +02:00