You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p300-speller-launch.lua 477B

2 years ago
123456789101112131415161718192021
  1. -- this function is called when the box is initialized
  2. function initialize(box)
  3. dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
  4. stim = _G[box:get_setting(2)]
  5. launchTime = box:get_setting(3)
  6. end
  7. -- this function is called when the box is uninitialized
  8. function uninitialize(box)
  9. end
  10. -- this function is called once by the box
  11. function process(box)
  12. box:send_stimulation(1, stim, launchTime, 0)
  13. end