Show Posts
Pages: 1 ... 16 17 [18] 19 20 ... 244
256  Using Arduino / Programming Questions / Re: Using an array in a switch case on: July 23, 2014, 08:21:40 pm
Quote
For one, the array needs to be 2D (char states[4][6], not char states[4]) to work with my previously written code.
If you had posted the previous code and said you needed them to work together, I would have given you exactly what econjack gave you.
257  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: July 23, 2014, 04:50:36 pm
The pins used in the diagram are just examples, it's the pins in the code you want to go by. Then again, you could always changes those too, but as long as you know which pin is what (clk,data,reset and busy) you can code it to work on any combination of arduino pins. Just note, if you plan on using the serial monitor, don't have anything in digital pins 0 & 1 , otherwise you may get incorrect results.
258  Using Arduino / Audio / Re: Arduino library for WTV020-SD-16P audio module on: July 23, 2014, 03:46:50 pm
P06 is the busy pin (pin 5), it lets the arduino know when a audio file has ended.
259  Development / Other Software Development / Re: AWind. GUI library for Arduino - TFT Displays on: July 23, 2014, 01:04:49 pm
It sounds similar to my library, but you included charts, oscilloscopes and sensor monitors.

My library is here TFT_Extension
260  Using Arduino / Programming Questions / Re: Using an array in a switch case on: July 23, 2014, 12:52:28 pm
No but you can do this.
Code:
#define Dud 0
#define Win 1
#define Lose 2
#define Accel 3

byte states[4] = {
  Dud,Win,Lose,Accel};

void setup()
{
  Serial.begin(115200);

  switch(states[0])
  {
  case Dud:
    //do nothing
    break;

  case Win:
    // user wins
    break;

  case Lose:
    //user loses
    break;

  case Accel:
    //timer accelerates
    break;
  }
}

void loop()
{

}
261  Using Arduino / Project Guidance / Re: wich one? on: July 23, 2014, 12:43:20 pm
Added:
Quote
the UNO is the general use one with 14 pins that can be inputs or outputs.
Dont forget the analog pins too.
262  Using Arduino / Project Guidance / Re: LCD Clock on: July 22, 2014, 09:49:07 am
Do you have the DateTime library?
263  Development / Other Software Development / Re: library for mongodb on: July 21, 2014, 08:44:31 am
Is it related to Arduino in any way, shape or form?
264  Using Arduino / Project Guidance / Re: 2-fan controller with OLED Display and navigation knob? on: July 17, 2014, 09:05:02 am
Check out this link Thermistor2
265  Using Arduino / Programming Questions / Re: using XOR in a loop on: July 17, 2014, 08:56:53 am
What do you mean, your XOR logic is in the if(Serial.available() ) statement, so you wont see anything unless you first send something.

If you want it to continuously show the data, then take them out of that statement.

Can you post a printout of what you're seeing and what you expect to see?
266  Using Arduino / Programming Questions / Re: using XOR in a loop on: July 17, 2014, 08:02:27 am
You need to post the full code. We can't help on snippets alone.
267  Using Arduino / Project Guidance / Re: 2-fan controller with OLED Display and navigation knob? on: July 16, 2014, 05:22:49 pm
Sorry, not that I know of, but then again I don't have nor have ever used a OLED display before.
268  Using Arduino / Programming Questions / Re: Nontrivial compiling issues on: July 16, 2014, 03:52:03 pm
You downloaded the library but where did you put it?
Also this "LCD12864.h" should be this <LCD12864.h> in the library is not in the same folder as the sketch.
269  Using Arduino / Project Guidance / Re: 2-fan controller with OLED Display and navigation knob? on: July 16, 2014, 03:50:07 pm
Why not use a 5" TFT touch screen? There are plenty on ebay, and they usually work with the UTFT and UTouch libraries. I also have a Library that works with both of them and gives you a wide array of functions you can use.
270  Using Arduino / Displays / Re: Help with Unknown TFT LCD on: July 16, 2014, 09:21:53 am
The things you would need to change are located in the Hardware folder > avr > HW_ATmega32U4, but unless you know what your doing, and/or have the datasheet for that display, you won't be able to change it.

You have a third party display, that is not supported by Henning's original library, so many sellers have modified versions that only work with their displays. You need to try and contact the seller and see exactly what library works.
Pages: 1 ... 16 17 [18] 19 20 ... 244