9 years, 4 months ago.

When I download the TextLCD program does this also download the header files?

Hello

I am new to MBED and wonder if when I download the TextLCD program I also have access to the TextLCD.h header file, or if I need to download this separately?

If I need to download it separately - how do I add this to the Library?

I plan to use this with the FreeSacle FRDM-KL25Z board.

Peter

Question relating to:

TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface HD44780, TextLCD

2 Answers

9 years, 4 months ago.

When you import the library in your existing program you will get the header and the source of the library. Just click on the lib folder in your program and it will open. You can also import a complete demo program in your compiler that will contain the lib and a main.cpp to test the library.

9 years, 2 months ago.

Hi friends

I wont to try and mbed nucleo401

But it does not understand

HOW I define the desired ports?

for example in the STM32 SPL / HAL / CMSIS (bitmasks) I do so :

/*Configure GPIO pins : PD9 PD11 PD12 PD13 PD14 PD15 */ GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13

GPIO_PIN_14GPIO_PIN_15;

GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);

How do I assign MY GPIO in MBED ???? for the program TextLCD?

I see only TextLCD lcd (p15, p16, p17, p18, p19, p20); Rs, e, d4-d7

how to understand it ?

In the case of Nucleo boards, you need to use another names of pins, for example:

TextLCD lcd(PA_9, PC_7, PB_5, PB_4, PB_10, PA_8, TextLCD::LCD16x2);  // RS, E, DB4, DB5, DB6, DB7

or alternatively Arduino pin names (if you use only the connector pins on the Arduino headers) for example:

TextLCD lcd(D8, D9, D4, D5, D6, D7, TextLCD::LCD16x2);  // RS, E, DB4, DB5, DB6, DB7

See for headers diagrams in the description of Nucleo: http://developer.mbed.org/platforms/ST-Nucleo-F401RE/

Pin names with the letter p are used in other platforms.

posted by Nothing Special 26 Feb 2015