Module global

Global Functions

Functions

beep([times=1[, duration[, frequency]]]) Beep
msleep(amount) Pauses for ms miliseconds and allows other tasks to run.
led_on() Turns the LED on
led_off() Turns the LED off
led_blink([times=1[, delay_on=50[, delay_off=50]]]) Blinks the LED


Functions

beep([times=1[, duration[, frequency]]])
Beep

Parameters:

  • times int number of times to beep (default 1)
  • duration int beep duration (ms) (optional)
  • frequency int beep frequency (Hz) (optional)
msleep(amount)
Pauses for ms miliseconds and allows other tasks to run.

This will block other tasks/events from this script, but will allow other scripts, ML tasks or Canon tasks.

TODO: make it identical to task.yield?

Parameters:

  • amount int number of milliseconds to sleep.
led_on()
Turns the LED on
led_off()
Turns the LED off
led_blink([times=1[, delay_on=50[, delay_off=50]]])
Blinks the LED

Parameters:

  • times int Number of times to blink. (default 1)
  • delay_on int How long the LED is on (in ms) (default 50)
  • delay_off int How long the LED is off (in ms) (default 50)
generated by LDoc 1.4.3 Last updated 2017-09-02 23:31:52