To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1232
1231  |  1233
Subject: 
Re: Battery status
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 24 Sep 2001 05:03:04 GMT
Viewed: 
2393 times
  
Karlheinz Marks wrote:

Hello,

can i check the battery status directly in NQC without connecting  the PC.
Can i use a trick to get the voltage

Br

Kalle

Here's a quick little program that will tell you.
Make sure it's the 2.x firmware.

---8<---

task main()
{
while (true)
{
SetUserDisplay(BatteryLevel(), 3);
}
}

---8<---


Dean

--
Dean Husby
LUGNET Member #320
TFM's LEGO Workshop - http://www.akasa.bc.ca/tfm
The Vancouver LEGO Club - http://www.akasa.bc.ca/vlc/



Message is in Reply To:
  Battery status
 
Hello, can i check the battery status directly in NQC without connecting the PC. Can i use a trick to get the voltage Br Kalle (23 years ago, 14-Sep-01, to lugnet.robotics.rcx.nqc)

4 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