The Display library is used to display images in the SPIKE App.
IMAGE_ROBOT_1=1IMAGE_ROBOT_2=2IMAGE_ROBOT_3=3IMAGE_ROBOT_4=4IMAGE_ROBOT_5=5IMAGE_HUB_1=6IMAGE_HUB_2=7IMAGE_HUB_3=8IMAGE_HUB_4=9IMAGE_AMUSEMENT_PARK=10NoneNone1
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()NoneintegerimageThe 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)NonebooleanfullscreenA 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)NonetextvalueThe text to display to the screen in the App
1
2
3
use Libraries.Robots.Spike.Display
Display display
display:Text("Hi!")