[solved] new display on keypress
I was wondering if anyone could help me with this (probably easy to solve) problem I am dealing with. In my experiment I want to have one display (my_display) that will be visible for 150 ms, and the next one (my_fixdot) that will stay until the key is pressed. However, I am not really finding a way to do this. Any help is appreciated!
This is what my run window currently looks like:
my_display = drawdisplay(var.display_number)
my_display.show()
self.sleep(150)
my_display.clear()
my_fixdot = drawfixdot(var.target_color)
my_fixdot.show()
self.sleep(0)
my_keyboard = keyboard(exp, keylist=['z', 'm'], timeout=None)
my_fixdot.clear()
log.write_vars()
Thanks in advance,
Sabina
Comments
Solved it