Show Posts
Pages: 1 ... 44 45 [46] 47 48 ... 251
676  Using Arduino / Project Guidance / Re: Keypad Help on: May 27, 2014, 08:54:04 pm
You need a condition that sets laststate back to LOW. Add this, once v1 equals "==" 0, laststate = LOW.
Quote
if (laststate == LOW && state == HIGH) // only count on a LOW-> HIGH transition
  {
     v1--;
     Serial.println(v1);
  }
  laststate = state;  // remember last state
677  Using Arduino / Displays / Re: Need some help with TFT display. on: May 27, 2014, 02:08:42 pm
I see what your getting just by the looking at the code. It's drawing random circles on the screen at different sizes which can be drawn at any part of the screen. The issue your getting is leakage, the circle(s) is being drawn outside or too close to the edge of the screen. This will cause the buffer to leak, resulting in the screen flickering. Everyone gets it, if what they draw goes past 240x320 pixels.

You will see the exact same thing if you draw a line at 0,0 and extend it to 400, 0 across the X axis.
678  Using Arduino / Displays / Re: Help Arduino Mega 2560 + 3.2" TFT LCD on: May 27, 2014, 11:20:25 am
I extracted everything you should need to get it to work.
679  Using Arduino / Displays / Re: Help Arduino Mega 2560 + 3.2" TFT LCD on: May 27, 2014, 07:59:53 am
Did you click the link on that page, Data Download?
680  Using Arduino / Programming Questions / Re: Led Cube Bluetoth Programming on: May 27, 2014, 07:54:27 am
You can send a packet of bytes, like so: <0xAF, 0x34, 0xFF, 0x12, 0x99>. each one controls a column of LEDs. Yes you need the tags, <> or similar, just so it is easier for your code to split the data. You would need to send 5 of these, one for each 5x5 section, and once you have all of the data, you display it.

If you want, you can send all 25 byte together as one packet, you will just need a counter to keep track of when to split the data into there 5x5 parts.

You can also use a structure, to send the data but it is not easy for beginners to understand.
681  Using Arduino / Programming Questions / Re: 4 probes + 6 contact pads = 24 possible serial outputs. on: May 26, 2014, 09:04:31 pm
How about a keypad?
682  Using Arduino / Programming Questions / Re: Led Cube Bluetoth Programming on: May 26, 2014, 06:07:32 pm
If you want to learn how to do it from your phone, you should first be able to do it with the Serial monitor. What are you currently using to display something on the cube? Could you post your code and an example picture or video?
683  Using Arduino / Programming Questions / Re: I've been trying to install for days! on: May 25, 2014, 06:37:30 pm
The first actual error is your problem, go into the .h file and change WProgram.h to Arduino.h then save it.
684  Using Arduino / Project Guidance / Re: Reading keyboard input from upload port on: May 25, 2014, 02:29:00 pm
Here is more to that link, USBHost This only works with an Arduino Due.

Here is the master library file. USB_Host_Shield

The USB port on the Arduino is a client, not a host, so in order for what you want to work, you need a USB host. And that is why there is a USB shield.

Added: Mike said it better.
685  Using Arduino / Displays / Re: Need some help with TFT display. on: May 25, 2014, 12:35:45 pm
Could you show us what you're seeing with some pictures or a video?
686  Using Arduino / Project Guidance / Re: Reading keyboard input from upload port on: May 25, 2014, 01:47:02 am
Someone can correct me on this, but I pretty sure both a keyboard and an Arduino are slave devices. So what you want to do, can not be done without an interpreter, like a computer.

You might be able to use a USB host shield, but it still may not work without a correct driver, if one even exists.
687  Development / Other Software Development / Re: New TFT Extension Library on: May 25, 2014, 01:32:30 am
Minor Update: Added new functions for _Draw buttons.

User gromgsxr got me thinking, my buttons use locks to prevent them from constantly redrawing on screen, so, if you want to use them in a menu system, they wont redraw when you reenter the screen. It is the exact same issue gromgsxr was having with his gauges, once he left the screen and came back, they wouldn't redraw. Well these new functions will (as there names imply) fix that issue as either individually or all (of the same type) at once.

New Functions:
ResetTouchButton(byte ID);
ResetTouchCircle(byte ID);
ResetTouchTriangle(byte ID);
ResetLatchButton(byte ID);
ResetLatchCircle(byte ID);
ResetLatchTriangle(byte ID);
ResetAllTouchButton();
ResetAllTouchCircle();
ResetAllTouchTriangle();
ResetAllLatchButton();
ResetAllLatchCircle();
ResetAllLatchTriangle();

Added:
The rounded_Square function draws MUCH faster.
688  Using Arduino / Programming Questions / Re: Displaying a Keypad on Touch Screen on: May 24, 2014, 10:37:10 pm
Yea, its not hard. I made a password screen that uses a touch screen keypad. What libraries are you using, UTFT and UTouch?
689  Using Arduino / Programming Questions / Re: Undefined reference to static variables on: May 24, 2014, 10:45:45 am
Post you library as either an attachment or here on the post.
690  Using Arduino / Programming Questions / Re: Trouble with the 16x2 on: May 23, 2014, 05:36:25 pm
Try lcd.print instead of .write.
Pages: 1 ... 44 45 [46] 47 48 ... 251