-
Notifications
You must be signed in to change notification settings - Fork 3
Extension module
Configuring the main LED on the RMTT extension module
tello.set_light_off()
Possible responses: led ok
/led error
tello.set_light_color(r, g, b)
Possible responses: led ok
/led error
Parameters:
- r: R value in RGB. Int from
0
to255
- g: G value in RGB. Int from
0
to255
- b: B value in RGB. Int from
0
to255
tello.set_light_pulse(r, g, b, frq)
Possible responses: led ok
/led error
Parameters:
- r: R value in RGB. Int from
0
to255
- g: G value in RGB. Int from
0
to255
- b: B value in RGB. Int from
0
to255
- frq: pulse frequency in Hz. Float or Int from
0.1
to2.5
tello.set_light_flash(r1, g1, b1, r2, g2, b2, frq)
Possible responses: mled ok
/mled error
Parameters:
- r1: R value in RGB (first color). Int from
0
to255
- g1: G value in RGB (first color). Int from
0
to255
- b1: B value in RGB (first color). Int from
0
to255
- r2: R value in RGB (second color). Int from
0
to255
- g2: G value in RGB (second color). Int from
0
to255
- b2: B value in RGB (second color). Int from
0
to255
- frq: flash frequency in Hz. Float or Int from
0.1
to10
Configure the matrix display (under the main LED)
tello.set_display_pattern(xxxx)
Possible responses: matrix ok
/matrix error
Parameters:
- xxxx: a string of
r
,b
,p
,0
(red, blue, purple, off) with a max length of 64. (eg.000rrrbbbppp
means the first 3 will be off, the next 3 will be red, the next 3 blue, the next 3 purple and the rest (unspecified ones) off)
tello.set_display_blank()
Possible responses: matrix ok
/matrix error
tello.set_display_string(direction, color, frame_rate, string)
Possible responses: matrix ok
/matrix error
Parameters:
- direction: string
l
,r
,u
ord
, meaning left, right, up and down respectively. - color: string
r
,b
orp
, meaning red, blue and purple respectively. - frame_rate: frame rate in Hz. Int or Float between
0.1
and2.5
- string: text to be displayed. Cannot exceed 70 chars.
tello.set_display_moving_image(direction, frame_rate, pattern)
Possible responses: matrix ok
/matrix error
Parameters:
- direction: string
l
,r
,u
ord
, meaning left, right, up and down respectively. - frame_rate: frame rate in Hz. Int or Float between
0.1
and2.5
- pattern: pattern to be displayed (see Display a Pattern above). String that cannot exceed 64 chars.
tello.set_display_ascii_character(character, color)
Possible responses: matrix ok
/matrix error
Parameters:
- character: 'heart' or a character that can be encoded to ASCII.
- color: string
r
,b
orp
, meaning red, blue and purple respectively.
tello.set_display_boot(pattern)
Possible responses: matrix ok
/matrix error
Parameters:
- pattern: pattern to display (see Displaying a Pattern above). String that cannot exceed 64 chars
tello.clear_display_boot()
Possible responses: matrix ok
/matrix error
tello.set_display_brightness(brightness)
Possible responses: matrix ok
/matrix error
Parameters:
- brightness: brightness for the display. Int from 0 to 255.
Miscellaneous
tello.get_tof()
Possible responses: tof xxxx
. xxxx
is the distance in mm. If the detection distance (~1.5m) is exceeded, returns 8192
tello.get_esp32_version()
Possible responses: esp32vx.x.x.x
where x.x.x.x
is the version
Install on pip: pip install tello-sdk
Go home
Created by ErnGusMik in 2022. Licensed under the MIT license.