Show Posts
Pages: 1 ... 34 35 [36] 37 38 ... 68
526  Using Arduino / Programming Questions / Re: How to blink 3 leds at different time intervals on: January 23, 2013, 07:44:42 pm
It can help other people so don't delete it smiley
527  Using Arduino / Displays / Re: Utft Compatible on: January 22, 2013, 05:24:59 pm
It is written on that page, that it uses SSD1289 as display controller and ADS7843 for touchscreen, so yes it will work with UTFT and UTouch you can buy no problem smiley
528  Using Arduino / Programming Questions / Re: Odd sprintf behaviour on: January 14, 2013, 03:46:22 am
Which other languages? You will have the same problem in any languages that uses char arrays that are too small to store a null terminated string smiley

That code reproduce it so you can see it's not specific to Arduino:
529  Using Arduino / Programming Questions / Re: What does this mean? on: January 13, 2013, 11:09:32 am
on is probably a boolean (either true or false) or an int either 1 or 0, so it is equivalent to:
digitalWrite(13, on);
530  Using Arduino / Programming Questions / Re: Is it possible to convert a int into a string? on: January 10, 2013, 10:04:40 pm
If the number is between 0 and 9 then you can do
char c = number + '0';

If number is bigger then no there is not an easier solution than itoa, but there is another solution that is sprintf
char string[12];
sprintf( string, "%d", number );
print( string );
531  Using Arduino / Programming Questions / Re: Serial.print not printing... on: January 09, 2013, 10:41:33 pm
You could also use sprintf:
char str[13];
sprintf( str, "%04d%04d%04d", loadcell, ampbatt, mainbatt );
Serial.print( str );
532  Using Arduino / Programming Questions / Re: Algorithm to rotate data on: January 09, 2013, 10:30:23 am
Something like this should work:
for (uint8_t i = 0; i < 4; i++)
  for (uint8_t j = 0; j < 4; j++)
    array_rotated[i][j] = array[3-j][i];

Or, for a single dimension array:
for (uint8_t i = 0; i < 4; i++)
  for (uint8_t j = 0; j < 4; j++)
    array_rotated[(i*4)+j] = array[((3-j)*4)+i];
533  Using Arduino / Programming Questions / Re: Trigonometric Functions in Arduino on: January 09, 2013, 08:19:37 am
Do you mean the functions acos, atan etc?
534  Using Arduino / Displays / Re: LCD TOUCH HELP on: January 08, 2013, 06:54:46 pm
More I/O pins, more memory. To use all the features of that LCD shield (touchscreen and SD card reader) you need an Arduino Mega smiley

If you buy a Arduino Uno, then you need this shield to connect the display:

But then you won't be able to use all the features of the LCD.

I recommend the Arduiono Mega so no problems smiley-cool
535  Using Arduino / Programming Questions / Re: Shift Register Library on: January 08, 2013, 05:39:04 pm
If you use 74HC595 shift registers, you could try this one
536  Using Arduino / Displays / Re: LCD TOUCH HELP on: January 08, 2013, 05:27:13 pm
NP, can I suggest buying this LCD, because it's the same thing but cost less:

Or, if you didn't buy the arduino already, buy this pack:

I bought the same pack on ebay for 35€ (~45$) smiley
537  Using Arduino / Programming Questions / Re: Text Array on: January 08, 2013, 05:15:31 pm
Is there a string longer or shorter than 3 characters in his code? No so why are you discussing things unrelated to the question...
538  Using Arduino / Displays / Re: LCD TOUCH HELP on: January 08, 2013, 02:24:46 pm
Yes, but it is recommended to connect it with the help of this adapter shield:
539  Using Arduino / Programming Questions / Re: Text Array on: January 08, 2013, 08:09:18 am
char sNames[7][4] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sun"};
540  International / Français / Re: booster la vitesse d'affichage d'un ITDB02 5"? on: January 03, 2013, 11:01:33 am
Je pense que c'est la librairie UTFT qui est lente, elle est conçue pour fonctionner avec pleins d'écrans et donc utilise une méthode universelle pour remplir l'écran: pixel par pixel.

Je ne sais pas quel contrôleur ton écran utilise, mais si tu regarde son datasheet tu y verra probablement une méthode nettement plus rapide pour effacer (ou remplir) l'écran. Maintenant pour convertir ce qui est dit dans le datasheet, en code C... smiley-grin
Pages: 1 ... 34 35 [36] 37 38 ... 68