Help getting started

For discussion of the Roku BrightSign digital signage product.

Moderators: RokuLyndon, RokuAnthony, RokuTed

Help getting started

Postby bostamy » Thu Nov 05, 2009 5:01 pm

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
bostamy
 
Posts: 2
Joined: Thu Nov 05, 2009 4:56 pm

Postby RokuLyndon » Fri Nov 06, 2009 1:54 pm

The file should be called autorun.brs.

And, if you're not actually calling functions, you can drop the 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
Lyndon
Roku Customer Care
RokuLyndon
 
Posts: 3506
Joined: Mon Nov 06, 2006 5:39 pm

Postby bostamy » Fri Nov 06, 2009 2:21 pm

Thanks for the help...i got confused because on your web page (http://www.brightsign.biz/implement.php) under implement is says just name the script file autoplay.bas
bostamy
 
Posts: 2
Joined: Thu Nov 05, 2009 4:56 pm

Postby RokuLyndon » Fri Nov 06, 2009 5:12 pm

I will have that fixed.
Lyndon
Roku Customer Care
RokuLyndon
 
Posts: 3506
Joined: Mon Nov 06, 2006 5:39 pm


Return to BrightSign General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests