Closed RobinMarchart closed 4 years ago
Can you share your code?
Sensors are not automatically detected on PiStorms like they are on EV3, so you have to configure the mode of the port first.
@KWSmit might have some example code for PiStorms.
I think my tic-tac-toe is a good exemple, see repo https://github.com/KWSmit/KSmEV3TicTacToe--PiStorms-version-
Please re-open with the requested info
On PiStorms-v2 using ev3dev I Tried using TouchSensor and got this Error:
I looked inside the sys filesystem and figured out that (touch) sensors are only shown if the mode is set to
ev3-analog
in/sys/class/lego-port/port<n>/mode
. after setting this value the sensor was shown in/sys/class/lego-sensor
and the previous code worked.This should propably be indicated in the docs or automatically be set. when setting not connected
/sys/class/lego-port/port<n>/mode
toev3-analog
it seems to be shown as not pressed sensor