Subject:
|
Re: LCD image editor for the NXT -- at LEGO Engineering.com
|
Newsgroups:
|
lugnet.robotics.nxt
|
Date:
|
Sat, 21 Oct 2006 23:44:51 GMT
|
Viewed:
|
13277 times
|
| |
| |
In lugnet.robotics.nxt, Jordan Bradford wrote:
> I just found out about this website, a partnership between LEGO and Tufts
> University's Center for Engineering Educational Outreach:
>
> <http://www.legoengineering.com/>
>
> Of special interest is their LCD image editor application for the NXT
> (Windows only), found here:
>
> <http://www.legoengineering.com/index.php?option=com_content&task=view&id=30&Itemid=60>
Hmmm. Just created a simple image and uploaded it using the NXT explorer, but
when I try to display it, nothing displays and syscall returns -122. Same
program displays faceopen.ric ok, but curiously syscall returns -3 for that,
even though the doco says non-zero return = error. Here's my program:
#include "NXTDefs.h"
dseg segment
dgArgs TDrawGraphic
buf byte[]
dseg ends
thread main
set dgArgs.Location.X, 0
set dgArgs.Location.Y, 0
mov dgArgs.Filename, 'pieces.ric'
//mov dgArgs.Filename, 'faceopen.ric'
set dgArgs.Options, 1
syscall DrawGraphic, dgArgs ; call the API
wait 1000
numtostr buf,dgArgs.Result
TextOut(0,0,1,buf,10)
wait 1000
endt
|
|
Message has 1 Reply:
Message is in Reply To:
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|