Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/AM5748: Interfacing 16x2 LCD with am5748

$
0
0

Part Number:AM5748

Tool/software: Linux

Hi all,

We are trying to interface 16x2 LCD display with am5748 processor, The GPIO pins are as below,

GPIO8_13
GPIO8_14
GPIO8_15
GPIO8_19
GPIO8_21
GPIO8_22
GPIO8_23
GPIO4_3

I am writing a code to drive the 16x2 LCD display and we have some functions in /include/linux/gpio.h for checking a valid GPIO, request and release for a gpio, setting direction and values of the gpio.

can I use this GPIO8_13 pin as a GPIO number for example

gpio_request(GPIO8_13)
gpio_direction_output(GPIO8_13, 1);
gpio_set_value(GPIO8_13, 1)
gpio_free(GPIO8_13)

If the above procedure is not correct kindly update me the correct way of accessing these gpio pins.

Thank You

Deepak.H.M


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>