4. USAGE
28
Kilobot User Manual
•
get_voltage()
Read the amount of battery voltage.
Example:
current_voltage = get_voltage();
•
get_ambient_light()
Returns the value of ambient light
note: will return -1 if there is an incoming message (which also uses a/d)
note: turns off interrupts for a short while to sample a/d
Example:
local_brightness = get_ambient_light();
•
get_temperature()
Read the temperature of the Kilobot.
note: will return -1 if there is an incoming message (which also uses a/d)
note: turns off interrupts for a short while to sample a/d
Example:
local_temperature = get_ temperature ();
Summary of Contents for KILOBOT
Page 1: ...Kilobot User manual Version 2 0 JANUARY 2016 ...
Page 4: ......
Page 42: ......
Page 43: ......
Page 44: ...K Team S A Z I Plans Praz 1337 Vallorbe Switzerland ...