Module global

Global Functions

Info:

  • Copyright: 2014
  • License: GPL
  • Author: Magic Lantern Team

Functions

beep ([times=1[, duration[, frequency]]]) Beep
shoot ([wait=64[, should_af=true]]) Take a picture
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)
shoot ([wait=64[, should_af=true]])
Take a picture

Parameters:

  • wait int how long to wait for camera to be ready to take a picture (default 64)
  • should_af bool whether or not to use auto focus (default true)
msleep (amount)
Pauses for ms miliseconds and allows other tasks to run.

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 2016-04-23 15:53:20