The Display library is used to display images in the SPIKE App.
IMAGE_ROBOT_1=1
IMAGE_ROBOT_2=2
IMAGE_ROBOT_3=3
IMAGE_ROBOT_4=4
IMAGE_ROBOT_5=5
IMAGE_HUB_1=6
IMAGE_HUB_2=7
IMAGE_HUB_3=8
IMAGE_HUB_4=9
IMAGE_AMUSEMENT_PARK=10
None
None
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()
None
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.
1
2
3
use Libraries.Robots.Spike.Display
Display display
display:Image(display:IMAGE_BEACH)
None
booleanfullscreen
A boolean which will determine if the current image is displayed in fullscreen if true, and as a pop-up if not.
1
2
3
4
use Libraries.Robots.Spike.Display
Display display
display:Image(display:IMAGE_BEACH)
display:Show(true)
None
textvalue
The text to display to the screen in the App
1
2
3
use Libraries.Robots.Spike.Display
Display display
display:Text("Hi!")