This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LCD 20x4 ( 4 bits ) lib

hello everyone I am trying to use a LCD 20x4 ( 4 bits ) with a lm3s328 , but have not found a proper lib , can someone give me a hand .
Thank you .

Parents
  • All these variables are declared. As said above , I am studying the systicks , delay ... Below is the code of main.c. Operating at 72Mhz.

    Grateful.

    #include <stdio.h>
    #include <stdint.h>
    #include "../cmsis/device/lpc134x.h"
    #include "../core/gpio/gpio.h"
    
    int main(void) {
            SystemCoreClockUpdate();               // 72Mhz
            SysTick_Config(SystemCoreClock / 100); // 1 = 1us / 10 = 1ms / 100 = 10ms / 1000 = 100ms
            gpioSetDir(GPIO_GPIO1_BASE, GPIO_PIN3, gpioDirection_Output);
            while (1) {
                    gpioSetValue(GPIO_GPIO1_BASE, GPIO_PIN3, GPIO_PIN3);
                    systickDelay(10000);
                    gpioSetValue(GPIO_GPIO1_BASE, GPIO_PIN3, 0x00);
                    systickDelay(10000);
            }
    }
    

Reply
  • All these variables are declared. As said above , I am studying the systicks , delay ... Below is the code of main.c. Operating at 72Mhz.

    Grateful.

    #include <stdio.h>
    #include <stdint.h>
    #include "../cmsis/device/lpc134x.h"
    #include "../core/gpio/gpio.h"
    
    int main(void) {
            SystemCoreClockUpdate();               // 72Mhz
            SysTick_Config(SystemCoreClock / 100); // 1 = 1us / 10 = 1ms / 100 = 10ms / 1000 = 100ms
            gpioSetDir(GPIO_GPIO1_BASE, GPIO_PIN3, gpioDirection_Output);
            while (1) {
                    gpioSetValue(GPIO_GPIO1_BASE, GPIO_PIN3, GPIO_PIN3);
                    systickDelay(10000);
                    gpioSetValue(GPIO_GPIO1_BASE, GPIO_PIN3, 0x00);
                    systickDelay(10000);
            }
    }
    

Children