Show Posts
Pages: 1 ... 54 55 [56] 57 58 ... 93
826  Using Arduino / Programming Questions / Re: BFS in arduino on: July 29, 2013, 01:08:28 pm
While there might be others in the know, it might help if you described what "BFS" is. Is it related to a BFG?
827  Using Arduino / Programming Questions / Re: Finding a number in a large array on: July 29, 2013, 11:44:31 am
Hash table would be most efficient, otherwise Binary Search.
828  Using Arduino / Programming Questions / Re: Can i use java insted of C ? on: July 29, 2013, 11:43:22 am
What you might have heard is that the IDE is written in Java. The toolchain uses C++, with some funky pre-processing.
829  Products / Arduino Due / Re: How to use millis() or micro() function in Arduino Due on: July 26, 2013, 01:58:59 pm
Unsigned != unsigned.
830  Using Arduino / Programming Questions / Re: Strange logic error with a while loop on: July 26, 2013, 11:57:39 am
cyberrage is right. You need && because for the || to be false and break the loop, *both* have to be false. If only one is true, the || is true.
831  Using Arduino / Programming Questions / Re: Strange logic error with a while loop on: July 26, 2013, 11:38:41 am
I don't think so.
if instr[EIP] == one of the numbers the while will be false and the loop will break.

In other words, as long as instr[EIP] does not equal one of the numbers I am looking for, keep looping.
832  Using Arduino / Programming Questions / Re: Strange logic error with a while loop on: July 26, 2013, 11:19:59 am
Put an L after the constant to signify it is long:  117000000L
833  Using Arduino / Project Guidance / Re: RS232 Hardware issue on: July 26, 2013, 09:38:14 am
Are the RX and TX lines connected correctly? Both devices might be set as DTE.
834  Using Arduino / Programming Questions / Re: BT blues on: July 26, 2013, 09:10:47 am
Show your code.
Look at the Serial example for how .available() works. But as far as i can tell, your code will only loop when there is data avalaible.

The function does not time out, it returns immediately with the number of characters ready to be read. If you fix it to wait for data to be available, it will loop forever wating for data.

I don't know if english is not your first language, but your posting style is hard to read.
835  Using Arduino / General Electronics / Re: Cardiograph on the Arduino on: July 24, 2013, 11:47:01 am
When is the assignment due?
836  Using Arduino / General Electronics / Re: Motor won't go full speed on: July 24, 2013, 11:45:23 am
Is the transistor high-side or low side?
837  Using Arduino / Programming Questions / Re: bug in initializing/destroing objects in array allocated with new[] operator on: July 24, 2013, 09:12:31 am
Power and elegance comes at a cost. You have no idea what is happening under the hood, and with the limited recources of an Arduino, that can be deadly.
838  Using Arduino / Programming Questions / Re: Question about programming the Arduino as HID USB keyboard on: July 22, 2013, 04:43:33 pm
You are not telling us what buf is declared as, but I would think that a 40 will just place the value of 40 into buf[0] and not touch buf[1]. If this is declared globally, that will create a valid string since buf will be set to all zeros, but if delared locally, buf[1] will contain garbage.
839  Using Arduino / Project Guidance / Re: A Mini Piano on: July 22, 2013, 03:34:38 pm
For the Notes and Frequencies, just look at the notes.h file included with the tone example above. You didn't even bother to try it, did you.
840  Using Arduino / Programming Questions / Re: SoftwareSerial on Uno problem on: July 22, 2013, 03:27:47 pm
You also need to set Myserial2 as the listener.
Pages: 1 ... 54 55 [56] 57 58 ... 93