Skip to content

Setting the frequency command of HiTechnic Color Sensor V2 #346

Answered by dlech
dianabarrett asked this question in Q&A
Discussion options

You must be logged in to vote
self.path = '/sys/class/lego-sensor/sensor' + str(self.sensor_index)

This needs a trailing slash:

self.path = '/sys/class/lego-sensor/sensor' + str(self.sensor_index) + '/'

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dianabarrett
Comment options

@dlech
Comment options

@dianabarrett
Comment options

Answer selected by dianabarrett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
platform: EV3 Issues related to LEGO MINDSTORMS EV3 topic: sensors Issues involving sensors topic: i2c Issues related to I2C
2 participants