We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffecd57 commit 6c3a638Copy full SHA for 6c3a638
pybricks/nxtdevices/pb_type_nxtdevices_ultrasonicsensor.c
@@ -66,7 +66,7 @@ static mp_obj_t nxtdevices_UltrasonicSensor_make_new(const mp_obj_type_t *type,
66
pb_assert(pbio_port_get_i2c_dev(port, &i2c_dev));
67
assert_i2c_string(i2c_dev, i2c_address, 0x08, "LEGO");
68
assert_i2c_string(i2c_dev, i2c_address, 0x10, "Sonar");
69
-
+ pbio_port_p1p2_set_power(port, PBIO_PORT_POWER_REQUIREMENTS_BATTERY_VOLTAGE_P1_POS);
70
71
nxtdevices_UltrasonicSensor_obj_t *self = mp_obj_malloc(nxtdevices_UltrasonicSensor_obj_t, type);
72
self->i2c_dev = i2c_dev;
0 commit comments