Jump to content
43oh

khahuras

Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by khahuras

  1. It seems very weird. This project (5110 LCD) and the LCD 16x2 project, and also a 7-segment LED project I run successfully on Arduino. However using Tiva C with Energia it didn't work although I used the pin numbers instead of port names. Is there anything to do with the clock frequency that affects the timing (tiva C is much faster than Arduino?)
  2. I've change as what you suggested, but... no hope. #if defined(__MSP430G2553__) LCD_5110_SPI myScreen; #elif defined(__LM4F120H5QR__) LCD_5110_SPI myScreen(10, // Chip Select 11, // Data/Command 2, // Reset 9, // Backlight PUSH2); // Push Button 2 #endif boolean backlight = false; uint8_t k = 0; How about the Serial clock and Serial data? I connected them to PB_4 and PB_7 respectively.
  3. Thanks Velo, but I'm afraid I don't fully understand. Do you mean to change the following lines? (e.g. change PA_7, PA_2... into pin numbers) #if defined(__MSP430G2553__) LCD_5110_SPI myScreen; #elif defined(__LM4F120H5QR__) LCD_5110_SPI myScreen(PA_7, // Chip Select PA_2, // Data/Command PB_5, // Reset PA_6, // Backlight PUSH2); // Push Button 2 #endif As what I done I can still toggle the backlight after uploading the code. It means using port names didn't affect, isn't it?
  4. Hi all, I have some troubles with Nokia 5110 LCD to run on Tiva C using Energia. Here is my full code. I wire as below: PA_7, // Chip Select PA_2, // Data/Command PB_5, // Reset PA_6, // Backlight PB_4 = SCK (2) = Serial Clock PB_7 = MOSI (2) = Serial Data I'd done compiled and uploaded the code onto the chip but there was nothing displayed on the 5110 Screen. I still can toggle the backlight on/off by the push button, it means that the loop is running. I think there may be some issues with the SPI driver. Thank you a lot, For your easy reference, I post the main .ino
×
×
  • Create New...