New answers tagged

8

Here is the schematic of an input port on the EV3 (available on official LEGO MINDSTORMS download page): And this is the implementation of the resistance() method from Pybricks MicroPython: STATIC mp_obj_t iodevices_AnalogSensor_resistance(mp_obj_t self_in) { iodevices_AnalogSensor_obj_t *self = MP_OBJ_TO_PTR(self_in); int32_t voltage; uint8_t ...


2

The type data file is probably this file. It contains definitions for non-UART sensors, which explains why the motors and touch sensor do not work but the other sensors do. I'm not sure how it could be missing since it normally isn't exposed to the user (maybe the flash memory got corrupted or some 3rd-party tool was used to delete the file). You could try ...


Top 50 recent answers are included