I'm trying to program a specific input sequence to be played when I run the python script however I couldn't figure out how to not get errors no matter what I tried. I don't really have a base in python syntax maybe that's why.
Anyway what I'm trying to achieve is something like this
Code: Select all
axis = 0
wait 100 ms
axis = 0.25
wait 100 ms
axis = 0.5
wait 100 ms
axis = 0.75
wait 100 ms
axis = 1
I am trying to figure how to put the cpu thread to sleep for exactly 100 ms before it executes the next instruction, after some research I found sleep(time), however I'm still getting error messages in FreePIE. I'm certain that this kind of script is not complex to make...
Can the experts here help me by providing me a sort of template for that kind of script so I can use it for my needs?
Thank you guys