 | | LEGO Info.
|
|
I've done an inquiry to the LEGO hot-line ( mailto:hotline@lego.com ) and here are the answers about several topics that might be of interest to some of you: - As from November 1st the new Robotics Invention System 1.5 will be available at LEGO (...) (27 years ago, 27-Sep-99, to lugnet.robotics)
|
| |
 | | Re: Analog I/O as Digital I/O
|
|
Also, the "digital(int p)" extends to the analog ports too. When used with a port that is analog in hardware, it just uses 127 as a threshold value to return 1 or 0 (note below 127 returns true). See page 22 in the HB manual. However, with this (...) (27 years ago, 27-Sep-99, to lugnet.robotics.handyboard)
|
| |
 | | R: Save arrays in VB5
|
|
If you dimension an array of (say) 100 elements as : DIM a(100) as integer the array elements goes from 0 to 99, for a total of 100. So if your loop searches for a 100th elements it comes out with the "subscript out of range" error. Either restate (...) (27 years ago, 27-Sep-99, to lugnet.robotics)
|
| |
 | | Re: R: Save arrays in VB5
|
|
(...) Actually, when you say Dim a(100) as integer, the array contains 101 elements ranging from element 0 to element 100. By default VB starts arrays at the 0th element (this can be changed). The Dim statement for arrays doesn't specify the number (...) (27 years ago, 27-Sep-99, to lugnet.robotics)
|
| |
 | | 5VDC Voltage Regulation
|
|
I'm in over my head with a project and need some help. I'm trying to use an RCX output port to control a 5VDC SPDT Relay from Radio Shack (part #275-240A). I need to limit the voltage of the port to 5 volts. How can I accomplish this? Is a voltage (...) (27 years ago, 27-Sep-99, to lugnet.robotics)
|