Skip to content

Commit

Permalink
Update ev3_extensions.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-drew authored Sep 14, 2020
1 parent 15bebae commit cdeb1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ev3_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ To handle such events you can use the code helpers EventSystem:
EventSystem.handle_events()
wait_for_tick()
``EventSystem.handle_events`` must be called often to allow such events to fire the related code. Any event in the system returns a data object, which will contain any useful information about the event.
``EventSystem.handle_events`` must be called often (ie in every loop iteration, simply add this line after every occurrence of ``wait_for_tick``) to allow such events to fire the related code. Any event in the system returns a data object, which will contain any useful information about the event.

Importing this means you need to transfer ``ev3sim/code_helpers.py`` onto the brick for this to run (Just create a folder named ``ev3sim`` and place `code_helpers.py`_ in there).

Expand Down

0 comments on commit cdeb1bc

Please sign in to comment.