Show Posts
Pages: [1]
1  Using Arduino / Displays / Re: 4D LABS μLCD-32PT(SGC) 3.2” Serial LCD Display Module Arduino Library on: July 22, 2011, 10:06:34 am
Thanks for the reply. Just starting out with your library - it makes it all fairly easy.
2  Using Arduino / Displays / Re: 3.2" TFT LCD Choice on: July 21, 2011, 06:51:19 pm
There is one difference between the two screens you linked - the 4D systems one has an "embedded graphics controller" of their own design on it. That means that for the more expensive screen, you just need a serial connection to it (RX, TX) from your arduino.

The first one has a driver, but not a controller. Running it would consume most of the pins of the arduino, and require a lot more programming.

Both ways work. the 4D systems screen will be faster to implement, and i suspect faster for a lot of things, since it has a 24bit channel to the LCD driver, while you would only have an 8 bit channel to the LCD driver. Plus it can pull images from the SD card and display them without going through the arduino.
3  Using Arduino / Displays / Re: 4D LABS μLCD-32PT(SGC) 3.2” Serial LCD Display Module Arduino Library on: July 21, 2011, 06:43:07 pm
I noticed in the example file that you draw your own buttons using your button.h/button.cpp. Was just wondering why you chose to do it that way instead of using the button drawing commands built into the 4D Serial language?
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: how do I use a 40 bit unsigned integer? on: July 23, 2009, 09:07:44 pm
interesting - changing the variable type to uint64_t resulted in the compiler error:
error: integer constant is too large for 'long' type In function 'void setup()':

i thought unit64_t was longlong?
5  Forum 2005-2010 (read only) / Syntax & Programs / how do I use a 40 bit unsigned integer? on: July 23, 2009, 08:17:41 pm
I want to use a variable of type uint40_t in my program.
What do I need to do to make this work?

currently, i have the following code fragments..

Code:
uint40_t testLongNumber;

void setup()
{
    testLongNumber=9876543210;

}

The compiler returns the error
error: 'uint40_t' does not name a type In function 'void setup()':

I think i need to #define what a uint40_t is, but not sure how I do it. Anyone know how?

Thanks
6  Forum 2005-2010 (read only) / Development / Re: FT232L vs Tiny2313 minimal Cost USB interface on: June 10, 2009, 08:33:05 pm
I think you'd only need different USB drivers. If the tiny2313 is only functioning as a USB to TTL converter, then everything else would just work as normal.

i think it's a good idea.
7  Forum 2005-2010 (read only) / Interfacing / Re: Wind Direction via 4 bit Gray Code Optical Encoder on: October 29, 2010, 11:04:34 am
Maybe this code will help:

From http://www.aip.de/~ast/EvolCompFAQ/Q21.htm

Code:
/* Gray <==> binary conversion routines */
/* written by Dan T. Abell, 7 October 1993 */
/* please send any comments or suggestions */
/* to dabell@quark.umd.edu */
typedef unsigned short ALLELE;

void gray_to_binary (Cg, Cb, n)
/* convert chromosome of length n+1 */
/*      from    Gray code Cg[0...n] */
/*        to  binary code Cb[0...n] */

allele    *Cg,*Cb;
int     n;
{
     int j;

     *Cb = *Cg;               /* copy the high-order bit */
     for (j = 0; j < n; j++) {
        Cb--; Cg--;         /* for the remaining bits */
        *Cb= *(Cb+1)^*Cg;   /* do the appropriate XOR */
     }
}

void binary_to_gray(Cb, Cg, n)
/* convert chromosome of length n+1 */
/*      from  binary code Cb[0...n] */
/*        to    Gray code Cg[0...n] */

allele    *Cb, *Cg;
int     n;
{
     int j;


     *Cg = *Cb;               /* copy the high-order bit */
     for (j = 0; j < n; j++) {
        Cg--; Cb--;         /* for the remaining bits */
        *Cg= *(Cb+1)^*Cb;   /* do the appropriate XOR */
     }
}
8  Forum 2005-2010 (read only) / Workshops / Re: Bay Area (UC Berkeley) Workshop May 15-16 on: May 08, 2010, 10:42:00 am
Wow - workshop looks great. If only i had the $$$ available.
9  Forum 2005-2010 (read only) / Uno Punto Zero / Re: Serial Monitor - VT100 Support, Please! on: October 30, 2010, 10:47:57 am
I heartily agree with this. it'd be nice to be able to have the "user interface" on the serial side have the option to look nice.
Pages: [1]