Search found 2443 matches
- Sun Dec 02, 2007 12:09 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Trying to get a Battleship Program ASAP
- Replies: 29
- Views: 25182
Sorry kiddo
Most people will not do homework FOR you. Why? 1) Because your classmates outnumber you and they would probably beat the crap out of you if you got caught 2) You WILL get caught! Your teacher is no fool. 3) Many of us use much more advanced programming methods! Your program would be obvious to other...
- Fri Nov 30, 2007 8:20 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
Notice
Presently Danner and I are waiting for the parts to come in. I will update this thread when we finally get something running. I contemplate using the Control port 890 to drive the door latch relay using a 4N29 Opto-Isolator chip. I will supply that code later, if anybody is following this thread. We...
- Thu Nov 29, 2007 11:29 pm
- Forum: General Discussion
- Topic: What's the best way to fill in a triangle?
- Replies: 11
- Views: 17672
- Thu Nov 29, 2007 2:37 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: reversible hex dump
- Replies: 6
- Views: 8523
True that you might be able to do it with the help of assembly code. I am sure there are other options too, but you specifically said "in Qbasic". I figure if you can do it in C, why bother doing it a harder way. Good luck on your project. Feel free to tell us of any new ideas you come up with! We a...
- Wed Nov 28, 2007 10:25 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: reversible hex dump
- Replies: 6
- Views: 8523
NOPE
QB cannot access RAM, so your stuck with C+.
- Wed Nov 28, 2007 5:12 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Problem with program...
- Replies: 23
- Views: 19461
Speed
Speed is based on how many prints you have, the delay times you set and the length of the file being read.
It is also based on the PC speed!
Ted
It is also based on the PC speed!
Ted
- Wed Nov 28, 2007 1:10 am
- Forum: General Discussion
- Topic: windows cursor control
- Replies: 4
- Views: 8597
- Mon Nov 26, 2007 2:27 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: File handling and Case study....
- Replies: 6
- Views: 8764
- Mon Nov 26, 2007 2:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Explanation of QBASIC code
- Replies: 3
- Views: 5008
You can find out if there is data in the receive buffer by using LOC(1). IF LOC(1) THEN a$ = INPUT$(15, 1) 'tries to get 15 bytes of data However, 15 bytes of data is really a lot to grab at once just because LOC says there is some data. I would use the code in a loop and use: DO IF LOC(1) THEN a$ =...
- Fri Nov 23, 2007 3:13 pm
- Forum: Freebasic Questions & Answers
- Topic: Can I make an image in Paint, then have a FB program load it
- Replies: 53
- Views: 101770
- Fri Nov 23, 2007 12:59 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Rotating a bit map image
- Replies: 11
- Views: 14615
Well
Once an image is BLOADed or gotten with GET, all of the data is in the array including the dimensions. Each piece of data can be manipulated using trig or just by reading the data differently. Some people index the RGB color settings for the bitmap first, so you have to find the start of the image d...
- Fri Nov 23, 2007 10:42 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
Update
I have updated my Q-basics tutorial with your scenario. My idea uses the 5 status pins, including the inverted one (LOL). I also include the encoder chip EDE1144 and a schematic. http://www.qbasicstation.com/index.php?c=p_member&filecat=3 The chip sends binary numbers to the S3 to S6 pins of the par...
- Sun Nov 18, 2007 10:36 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
OK, I found an Encoder for Parallel or Serial data from your shorting keypad. It is an EDE1144 IC which requires a 4Mhz crystal, but can also use a beeper to acknowledge a press. It sends out 4 bits of binary data for a parallel port also. It can also be connected to a serial port, but we won't even...
- Sun Nov 18, 2007 9:30 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
Here is what I see
You just use DataVal = INP(888). This shows the binary bit totals in decimal values. Each time a pin changes value, so does the decimal value. Then you check each pin value using the AND mathmatical operator in QB. DIM SHARED D(0 TO 7) AS INTEGER, DataVal AS INTEGER DO DatVal = INP(888) 'read port d...
- Sat Nov 17, 2007 5:19 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Problem with program...
- Replies: 23
- Views: 19461
A TIMER Delay
Here is a simple Delay SUB that works for seconds down to .02 seconds and it is good on any speed computer: SUB Delay (Dela!) start = TIMER DO WHILE start + dela! > TIMER IF start > TIMER THEN start = start - 86400 'midnite correction LOOP END SUB I use this instead of SLEEP for a very important rea...
- Sat Nov 17, 2007 1:00 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
I don't understand your new idea about the pad and not reversing the port at all. How can you get much out of the keypad if it just shorts rows and columns. Obviously you would have to feed the 3 columns 5 volts and read just 4 rows. This would make it only a matter of mixing 4 keypresses or actuall...
- Fri Nov 16, 2007 11:27 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
The port will have to be in reverse mode waiting for input
That is why I said that the program has to be constantly running and the port will have to be constantly reversed by the program as it may timeout. That should not hurt anything. When you send 5 volts to a reversed port pin it tells INP(888) that it is ON. Use the chart I made above for the exponent...
- Fri Nov 16, 2007 2:47 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
Reversing the port
To reverse a 1284 compatable port send the contol port C5 a value in your program as below: OUT 890, INP(890) OR 32 'sets C5 on if it is off Now you can turn the port's pins on using an A/D converter or other type devices using 5 volts. Check that C5 is always set in your PC program. C5 has a timeou...
- Fri Nov 16, 2007 1:47 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: INP and OUT Port
- Replies: 37
- Views: 45297
WHAT?
A keyboard to the port pins? That's why you have a keyboard on a PC to begin with. To send data to the port, it must be reversable. The voltage used is only 5 volts! An unused port will return 255 until you send it something else WHILE it is reversed. All you do is turn appropriate pins on while in ...
- Wed Nov 14, 2007 3:04 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Problem with program...
- Replies: 23
- Views: 19461
LOL Who needs BRUN45? That should have been my first thought, but most programs do not require it. If you use CHAIN then you can use it so that you pass COMMON SHARED values to the other module. Stand alone modules CHAINED will need a file to pass the values. In any case, you still needed some type ...