- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to use LCD on my cyclone V board. I failed to compile the I2C LCD example so I moved the code to my project. I moved the master part and some encironment needed. The code ran well
But the LCD didnt show anything.
I put all the lcd_demo_master to my main.c and call the lcd_demo_master.
The console showed the init of I2C is successful as well.
Any Ideas?
Reguards.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nevermind,
Now the problem is that how can I print "\n" and Hex on that LCD.
I had a 128 bit buffer with 4 elements |--(uint8_t) a--|--(float) A--|--(uint8_t) b--|--(float) B--|
I want to let the LCD show these four elements in their form
| a "\n" A | first line
------------------------------
| b "\n" B | second line
I wrote the first line as followed but I dont know if it is what I want:
// Read the first element code_a
if(status == ALT_E_SUCCESS)
status = alt_i2c_master_transmit(device,BUFFER,sizeof(uint8_t),ALT_E_FALSE,ALT_E_TRUE);
if(status != ALT_E_SUCCESS)
{
break;
}
delay_us(LCD_PRINT_DELAY_US);
------------------------------------------> there should be a blank output
// Read the second element count_A
if(status == ALT_E_SUCCESS)
status = alt_i2c_master_transmit(device,BUFFER+sizeof(uint8_t),sizeof(float),ALT_E_FALSE,ALT_E_TRUE);
if(status != ALT_E_SUCCESS)
{
break;
}
Also, I didnt change their type,so they are all "char"
Any solutions?
Reguards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Greetings and welcome to Intel's Community.
You may have a look at this similar case for the solution: https://community.intel.com/t5/Nios-V-II-Embedded-Design-Suite/Cyclone-V-LCD-I2C-baremetal-sample-for-Altera-s-SoC-DevKit/td-p/128074
Thank you.
Regards.
Kelly Jialin. GOH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You may have a look at this case that might help: https://community.intel.com/t5/Programmable-Devices/Hex-Values-on-LCD-Display/td-p/195005?profile.language=es&countrylabel=Chile
Unfortunately, as the Cyclone V I2C LCD Design Example is discontinued, we have very limited access to their resources as well.
Thank you.
Regards,
Kelly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Any updates from you end whether the feedback provided is useful?
Thank you.
Regards,
Kelly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.
p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.
Thank you.
Regards,
Kelly Jialin, GOH
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page