Forum Discussion
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.