2017년 7월 6일 목요일

Arduino101RgbLcd


The Arduino 101 RGB LCD lets users communicate information on a liquid crystal display (LCD) with optional RGB LED backlight.

Note: The RGB LCD display requires 5V power rather than 3.3V. If you areconnecting it with the Grove Shield, you will need to make sure the voltage switch is in the 5V position otherwise the display may not function correctly.
More Links
⦁ Download a sample project for the .
⦁ View the how to instructions for the RGB LCD.

Properties

⦁ BluetoothDevice – The BluetoothLE component with a connection to the Arduino 101.

get Arduino101RgbLcd1 BluetoothDevice
set Arduino101RgbLcd1 BluetoothDevice  to

Methods

⦁ GetBackgroundColor – Request the current background color from the device. The color will be returned through the <a href='#BackgroundColorReceived">BackgroundColorReceived event.

call Arduino101RgbLcd1 GetBackgroundColor
⦁ GetText – Get the text currently shown on the screen. The text will be returned through the TextReceivedevent.
call Arduino101RgbLcd1 GetText
⦁ IsSupported – Tests whether the Bluetooth low energy device is broadcasting support for the service. If true, calls to TurnOn and TurnOff should work correctly. Otherwise an error will be reported through the Screen's ErrorOccurred event.
call Arduino101RgbLcd1 IsSupported
⦁ SetBackgroundColor – Set the background color of the RGB LCD connected to the Arduino 101. This method can take any of the color blocks or a color composed using the a href="http://appinventor.mit.edu/explore/ai2/support/blocks/colors.html#make"make a color block. The RGB LCD does not have the same range of colors as a computer screen, so you may not observe changes between similar colors.
  Parameters:
  ⚬ color (color) — The color to change the background color to.
call Arduino101RgbLcd1 SetBackgroundColorcolor
⦁ SetText – Set the text of the display. Text is limited to string with not more than 2 lines of 16 characters each. If a line is longer than 16 characters, it will be truncated.
  Parameters:
  ⚬ text (text) — The text to show on the LCD. This is limited to two 16-character strings separated by a newline "\n"
call Arduino101RgbLcd1 SetTexttext

Events

⦁ BackgroundColorReceived – The BackgroundColorReceived event is run when the background color information is successfully received from the Arduino 101.

  Parameters:
  ⚬ color (color) — The current color of the background.

when Arduino101RgbLcd1 BackgroundColorReceived color do
⦁ TextReceived – The TextReceived event is run when the text currently displayed on the RGB LCD is received from the Arduino 101 in response to a call to GetText.
  Parameters:
  ⚬ text (text) — The text currently being shown on the RGB LCD. Note that this may not match the characters being shown due to a limited range of Unicode support for the LCD.
when Arduino101RgbLcd1 TextReceived text do

댓글 없음:

댓글 쓰기