To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 721
720  |  722
Subject: 
Re: pbLua Beta 8 - with pixel and battery voltage reading
Newsgroups: 
lugnet.robotics.nxt
Date: 
Tue, 8 May 2007 15:39:02 GMT
Viewed: 
19292 times
  
In lugnet.robotics.nxt, Dean Hystad wrote:
snip

What's so special about this one? Well it's got some significant
new features including:

1. The ability to read an arbitrary pixel on the display

2. The ability to read the battery voltage, along with other
   useful info like whether it's rechargeable and what
   the approximate capacity is
snip

I question the significance of feature #1, but feature #2 sure is a neat trick.
How do you do it?

I questioned the significance of the first one too when one of
the pbLua users asked for it. Then, as I was writing some docs
for pbLua I realized that it would be a nice way to get screenshots
of the display.

It's pretty easy to read the pixels and format them into a stream
of bytes that can be made into a GIF or PNG file.

Feature 2 was easy because I'm lazy - I just grep'ed for the
work Battery in the LEGO firmware source code and figured out
a way to work that into the pbLua source.

I should mention here that I use the LEGO source (parts that I need)
almost verbatim in the pbLua build. SO far, I think I've only had
to modify a few dozen lines of code to integrate pbLua with the
low level drivers supplied by Lego.

I don't use the actual high level code or the opcode interpreter...

Cheers, and thanks for asking!

Ralph



Message is in Reply To:
  Re: pbLua Beta 8 - with pixel and battery voltage reading
 
snip (...) snip I question the significance of feature #1, but feature #2 sure is a neat trick. How do you do it? (17 years ago, 8-May-07, to lugnet.robotics.nxt)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR