Pybricks API Support - QuirkyCort/gears GitHub Wiki
We support most, but not all the Pybricks API. Details are below...
| Classes | Supported |
|---|---|
| hubs | |
| EV3Brick | Yes |
| * light, screen, and battery not supported | |
| * speaker do not support play_notes(), play_file(), and set_speech_options() | |
| ev3devices | |
| Motor | Yes |
| * positive_direction and gears parameters are ignored | |
| * control is not available | |
| * dc() behaves as a speed percentage setting | |
| * run_until_stalled() works the same as run() (...motors never stalls in the simulator) | |
| * track_target() works poorly and should be avoided | |
| TouchSensor | Yes |
| ColorSensor | Yes |
| * ambient() will always return 0 | |
| * color() may not give the same value as the actual sensor | |
| InfraredSensor | No (Sensor not implemented in GearsBot) |
| UltrasonicSensor | Yes |
| * presence() will always return False | |
| GyroSensor | Yes |
| robotics | |
| DriveBase | Yes |
| * Default settings for straight and turn may not be the same as actual | |
| * drive() may not behave the same as actual Pybricks if the specified speed and turn rate is unachievable | |
| * distance_control and heading_control are not available |