3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

set_state_led_color()

정의

set_state_led_color(r,g,b)

기능

Task play 동안 사용자가 지정한 색상으로 로봇 led를 설정합니다.

인수

인수명

자료형

기본값

설명

r

int

0

1: Red color on
0: Red color off

g

int

0

1: Green color on
0: Green color off

b

int

0

1: Blue color on
0: Blue color off

리턴

설명

0

성공

음수값

오류

예외

예외

설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

예제

Python
#white color
set_state_led_color(1,1,1)

#cyan color
set_state_led_color(0,1,1)

#magenta color
set_state_led_color(1,0,1)

#blue color
set_state_led_color(0,0,1)

#yellow color
set_state_led_color(1,1,0)

#green color
set_state_led_color(0,1,0)

#red color
set_state_led_color(1,0,0)

#led off
set_state_led_color(0,0,0)

Keyword

set_state / led / led_color