Help getting started
I am trying to get started writing my own script (i eventually want to get the project to the point of using zones with the GPIO) but I am trying something simple. I have a flash card with just a red,blue,and green .bmp image and a simple script I wrote (see below). I save the script in a file 'autoplay.brs' however it doesn't seem to be working since it doesn't toggle between the blue and green images as I expect (it cycles through all three). Can anyone please give me some advice about getting started getting this script to work?
sub main()
debug = true
v=CreateObject("roVideoMode")
v.SetMode("1920x1080x60i")
i1=CreateObject("roImagePlayer")
i1.SetDefaultMode(0)
while true
i1.DisplayFile("blue.bmp")
sleep(1000)
i1.DisplayFile("green.bmp")
sleep(1000)
end while
end sub