Light

Light include MoonBot Kit Controller Module Two on-board LEDs and 12 external LEDs Eyes Module drivers.

With these modules, you can easily set the color and brightness of the LED.

../../../_images/51.png

Eye Initialization

../../../_images/52.png
Introduction

Initialize the eye module to the specified port.

Parameters
port
  • 1~9

Eye display

../../../_images/53.png
Introduction

Write the color value of the eye LED into the buffer and display it.

Introduction
colour
  • ../../../_images/LED_color.png

Eyes show expression

../../../_images/54.png
Introduction

Eye LED displays facial movements.

Parameters
Expression
  • `` Module Dropdown Menu``

Master control LED display

../../../_images/55.png
Introduction

Write the color value of the master LED into the buffer and display it.

Parameters
colour
  • ../../../_images/LED_color.png

LED Setting RGB Value

../../../_images/56.png
Introduction

Write the RGB color value of a given LED lamp into the buffer.

Parameters
LED Type
  • Eye :eye LED

  • master control LED :master control LED

Lamp number
  • Eye: 0~11, master control LED : 0~1

R value
  • 0~255 :Red Channel Analog

G value
  • 0~255 :Green Channel Analog

B value
  • 0~255 :Blue Channel Analog

LED Setting HSV Value

../../../_images/57.png
Introduction

Write the HSV color value of a given LED lamp into the cache.

Parameters
LED Type
  • Eye :Eye LED

  • master control LED :master control LED

Lamp number
  • Eye: 0~11, master control LED : 0~1

H value
  • 0~360°: Tone Value

../../../_images/hue_color.jpeg
S value
  • 0~255 :Saturation value analogue

V value
  • 0~255 :Luminance value analogue

LED show

../../../_images/58.png
Introduction

Show the color values in a given LED buffer

Parameters
LED Type
  • Eye :Eye LED

  • master control LED :master control LED

LED clear

../../../_images/59.png
Introduction

Clear the cache of the specified LED.

Parameters
LED Type
  • Eye :Eye LED

  • master control LED :master control LED

LED brightness

../../../_images/510.png
Introduction

Set the brightness of the given LED.

Parameters
LED Type
  • Eye :Eye LED

  • master control LED :master control LED

brightness
  • 0~255 : 0 darkest,``255`` brightest