Display

The Display library is used to display images in the SPIKE App.

Constants

  1. IMAGE_ROBOT_1=1
  2. IMAGE_ROBOT_2=2
  3. IMAGE_ROBOT_3=3
  4. IMAGE_ROBOT_4=4
  5. IMAGE_ROBOT_5=5
  6. IMAGE_HUB_1=6
  7. IMAGE_HUB_2=7
  8. IMAGE_HUB_3=8
  9. IMAGE_HUB_4=9
  10. IMAGE_AMUSEMENT_PARK=10

Hide()

Returns

None
Hides the currently displayed image or text in the App.

Parameters

None

Example

1 2 3 4 5 6 7 use Libraries.Robots.Spike.Display use Libraries.Robots.Spike.Hub Display display Hub hb display:Text("Hi!") hb:Sleep(1000) display:Hide()

Image(integer image)

Returns

None

Parameters

  1. 1.integerimage

    The image to show in the App, an integer value from 1 to 21 obtained from one of the constants provided in this class.

Example

1 2 3 use Libraries.Robots.Spike.Display Display display display:Image(display:IMAGE_BEACH)

Show(boolean fullscreen)

Returns

None

Parameters

  1. 1.booleanfullscreen

    A boolean which will determine if the current image is displayed in fullscreen if true, and as a pop-up if not.

Example

1 2 3 4 use Libraries.Robots.Spike.Display Display display display:Image(display:IMAGE_BEACH) display:Show(true)

Text(text value)

Returns

None

Parameters

  1. 1.textvalue

    The text to display to the screen in the App

Example

1 2 3 use Libraries.Robots.Spike.Display Display display display:Text("Hi!")