Forum: Assembly Nov 3rd, 2009 |
| Replies: 6 Views: 500 But does your simulation work when you apply a logic high or low to the port pin, by means of, say a switch?
When you connected a voltmeter to the output of the LDR, what readings did you get when... |
Forum: Assembly Nov 3rd, 2009 |
| Replies: 6 Views: 500 You don't need a ADC. Put the LDR in series with a resistor of about 10K and connect the output of the LDR to a port pin. When the Laser shines on the LDR, its resistance will be much lower than 10K... |
Forum: Assembly Nov 2nd, 2009 |
| Replies: 6 Views: 500 You've explained what you need to do, but you haven't asked a question.
An LDR in a voltage divider would replace the switch, if your code works for a switch, it will work with a LDR. But it's not... |
Forum: C++ Dec 13th, 2008 |
| Replies: 15 Views: 1,076 This looks like C not C++, so look into creating structs. |
Forum: Computer Science Dec 13th, 2008 |
| Replies: 19 Views: 2,168 Which would you rather call out over the phone, a long string of binary numbers or a short string of hexadecimal numbers? |
Forum: Computer Science Dec 13th, 2008 |
| Replies: 19 Views: 2,168 You need a hex editor as mentioned, like
http://www.softcircuits.com/cygnus/fe/
You just convert the hexadecimal bytes to binary in your head. |
Forum: Computer Science Dec 12th, 2008 |
| Replies: 19 Views: 2,168 You don't see them because "1" and "0" are just the symbols we have given to binary numbers. We could have called them "alphas" and "betas" or anything else instead. Asking what a 1 or 0 is ... |
Forum: Assembly Oct 20th, 2008 |
| Replies: 4 Views: 583 If P1.2 is set and you move P1.2 to C, then C is set. |
Forum: Assembly Oct 20th, 2008 |
| Replies: 4 Views: 583 MOV C, P1.2 simply moves the value on the port pin to the carry. |
Forum: C Sep 19th, 2008 |
| Replies: 2 Views: 972 http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles4.html |
Forum: C Aug 3rd, 2008 |
| Replies: 8 Views: 3,886 I'm sure WolfPack will be glad to finally hear from you. |
Forum: C Jul 1st, 2008 |
| Replies: 8 Views: 694 reboot into safe mode and delete it. |
Forum: C Jun 8th, 2008 |
| Replies: 9 Views: 814 Actually, you don't need mmsystem.h and that pragma. You can add winmm.lib as an additional dependency. |
Forum: C Jun 8th, 2008 |
| Replies: 9 Views: 814 #include <windows.h>
#include <mmsystem.h>
#include <stdio.h>
#pragma comment(lib, "winmm.lib")
int main()
{
PlaySound( TEXT("C:\\WINDOWS\\.file_store_32\\sound0.wav"), NULL,... |
Forum: C Jun 8th, 2008 |
| Replies: 9 Views: 814 You can use the Beep() function from the Win32 API.
Beep(82, 600);
That will sound at 82Hz for 600ms.
You can use the PlaySound() function also from Win32 to play a wave file.
You need to... |
Forum: C Jun 8th, 2008 |
| Replies: 9 Views: 814 |
Forum: C May 19th, 2008 |
| Replies: 20 Views: 1,869 Basically, why use global variables when they aren't necessary. You have tighter control over local variables. You decide what sees them.
Some situations I find global variables are useful, like... |
Forum: C Apr 30th, 2008 |
| Replies: 6 Views: 835 Install GiveIO, it will give you access to the ports under XP. |
Forum: C++ Apr 30th, 2008 |
| Replies: 5 Views: 624 Code::Blocks
http://www.codeblocks.org/
It comes with GCC and has support for numerous others. |
Forum: C Apr 5th, 2008 |
| Replies: 5 Views: 764 I think you might be looking for this function
http://www.cs.colorado.edu/~main/cs1300/doc/bgi/getimage.html
See this too.
http://www.geocities.com/SiliconValley/Park/3230/pas/pasl2007.html |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,909 I'm not sure what you mean exactly by using code that has already been created but your code compiled for me after I chose glut. |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,909 When you create a project did you choose Multimedia > GLUT
This is how to set it up
http://www.zeuscmd.com/tutorials/opengl/02-SettingUpYourEnvironment.php#devc++glut |
Forum: C Mar 1st, 2008 |
| Replies: 8 Views: 1,909 Install the glut devpak
http://www.nigels.com/glt/devpak/ |
Forum: Assembly Feb 23rd, 2008 |
| Replies: 2 Views: 1,543 http://www.allaboutcircuits.com/vol_4/index.html
Chapters 7,8 |
Forum: C Jan 19th, 2008 |
| Replies: 12 Views: 8,175 Yes Aia, and then I pointed out you never took into consideration, the OP must use BGI graphics for this program rendering those questions irrelevant. |
Forum: C Jan 19th, 2008 |
| Replies: 12 Views: 8,175 My point is, what makes you think the OP hasn't already a modern compiler installed. Go back and read the thread because you've lost the plot. |
Forum: C Jan 19th, 2008 |
| Replies: 12 Views: 8,175 He needs to write a program using BGI graphics for school. He never said anything about not using a modern compiler in his free time. |
Forum: C Dec 26th, 2007 |
| Replies: 6 Views: 2,010 Can't you use a variable to keep a running count of the frames, then render certain things after so many frames. You're not going to notice times smaller than the time for a frame anyway.
... |
Forum: C++ Dec 16th, 2007 |
| Replies: 10 Views: 2,733 Just to note. It isn't necessary to use binary to work out this example. ASCII goes from 0 to 127.
'a' is 97. If you add 31, you're back to 0. You could add 95 to get the same result. 223 is... |
Forum: C Jun 30th, 2007 |
| Replies: 9 Views: 1,628 You can't have whitespace in a variable's name like this:
int numerator a;
You'd have to declare that variable something like this instead:
int numerator_a;
Then if you wanted to store an... |
Forum: C++ May 13th, 2007 |
| Replies: 6 Views: 8,156 F7 to compile and F5 to run. |
Forum: Java Feb 23rd, 2007 |
| Replies: 5 Views: 1,805 eg. If you declare a variable named total and make it = 0.
Each time going through a loop with this line of code;
total = total + price;
the total becomes equal to whatever value total has... |
Forum: Java Feb 23rd, 2007 |
| Replies: 5 Views: 1,805 Sorry while(true) I meant there, not while(1). |
Forum: Java Feb 23rd, 2007 |
| Replies: 5 Views: 1,805 You could
do away with the Do-while and instead use an infinite loop.
while(1)
{
print out menu, get choice
switch(choice)
{
Ask to quit in here, scan input and then break out of... |
Forum: Java Jan 2nd, 2007 |
| Replies: 3 Views: 1,318 You can convert the Jar to an Exe, and run it then. Just google "Jar to Exe."
At least that's how I how I did it, perhaps there's an easier way. |
Forum: Viruses, Spyware and other Nasties Oct 18th, 2006 |
| Replies: 29 Views: 8,739 Go to the following link and download the sharedaccess.reg file and save it to your desktop:
http://windowsxp.mvps.org/reg/sharedaccess.reg
Then double-click the file to merge the contents to... |
Forum: Viruses, Spyware and other Nasties Oct 14th, 2006 |
| Replies: 29 Views: 8,739 Rescan with hijackthis and check:
O20 - AppInit_DLLs: C:\PROGRA~1\Google\GOOGLE~1\GOEC62~1.DLL C:\WINDOWS\system32\wucrtupd.dll
Close all other windows and click Fix checked
Find and... |
Forum: Viruses, Spyware and other Nasties Oct 13th, 2006 |
| Replies: 29 Views: 8,739 Hi
Your java is out of date
click here to download
Java Runtime Environment (JRE) 5.0 Update 9
http://java.sun.com/javase/downloads/index.jsp
Go to add/remove programs and unistall any... |
Forum: Viruses, Spyware and other Nasties Oct 13th, 2006 |
| Replies: 29 Views: 8,739 Please download Vundofix.exe to your desktop http://www.atribune.org/ccount/click.php?id=4
Double-click VundoFix.exe to run it.
Click the Scan for Vundo button.
Once it's done scanning, click... |