9 years, 1 month ago.

Gameduino LCD 2 and Nucleo Board STM32F411

Hi, I would like to know if it s possible to use gamedunio LCD on STM32 nucleo board and if there are any code example for it. Thanks.

G.Z.

2 Answers

9 years, 1 month ago.

I've not used it on the Nucleo but it worked fine on an Arch Pro.

There is a library for the display here: http://developer.mbed.org/users/dreschpe/code/FT800/

however it does need a few minor changes.

In FT_LCD_Type.h change

#define my_DispSwizzle  0
to 
#define my_DispSwizzle  3

And then in FT_GPU_Hal.cpp in the function ft_void_t FT800::BootupConfig(void) change

	Ft_Gpu_HostCommand( FT_GPU_EXTERNAL_OSC);  
to
	Ft_Gpu_HostCommand( FT_GPU_INTERNAL_OSC);  

and finally

#ifdef Inv_Backlite 
    Ft_Gpu_Hal_Wr16(  REG_PWM_DUTY, 0);
#else
    Ft_Gpu_Hal_Wr16(  REG_PWM_DUTY, 100);
#endif

changes to

#ifdef Inv_Backlite 
    Ft_Gpu_Hal_Wr16(  REG_PWM_DUTY, 0);
#else
    Ft_Gpu_Hal_Wr16(  REG_PWM_DUTY, 128);
#endif

The first two changes are to do with the different hardware setup between the gameduino and the platform that library was written for.

The last change is a trivial bug, the backlight brightness isn't a percentage, its 0 for off up to 128 for full brightness. If you aren't using the audio then this really doesn't make much difference, the extra brightness isn't that noticeable. However the audio on the gameduino is a terrible bit of hardware design, it picks up noise from the backlight circuit. By keeping the backlight on at full brightness you get a lot less noise on the audio.

I think those were all the changes I needed to make to get it working.

9 years, 1 month ago.

There is port for Nucleo at https://developer.mbed.org/users/aluqard/code/Gameduino2/ It was nearly working "as is", perhaps small fix is necessary. I ran it on 401 and 411.