Hey everyone,
I did some C/Assembly based programming in college and wanted to play around with my wideband controller a bit. Biggest thing I want to do was have the display show AFR instead of Lambda. Since I know stoichiometric for Gasoline is 14.7 I can multiple the Lambda reading by 14.7 to get the desired reading. So I guess I have a couple different questions.
From what I understand
"BYTE Lambda_x100;"
is the value that is displayed on the LCD in this format:
char Str1[] = "Lamdba=x.xx"; Using this code:
LCD_Counter=0;
#ifdef LCD_Lambda_Graph
temp_int=ip-ip_to_Lambda_Lookup_Start;
if (temp_int<0)
{
temp_int=0;
}
if (temp_int>(ip_to_Lambda_Lookup_Size-1))
{
temp_int=(ip_to_Lambda_Lookup_Size-1);
}
Lambda_x100=ip_to_Graph_Lookup[temp_int];
LCD_DrawBG(0,0,16,Lambda_x100);
#endif
So I should be able to change the Character string definition to = "AFR=x.xx"
and also where it initializes the LCD screen with LCD_DrawBG(0,0,16,Lambda_x100); change it to LCD_DrawBG(0,0,16,Lambda_x100*14.7);
I am not sure if I would need single or double quotes.
I guess my questions is.... am I even close?
Also this looks to be built/complied with Microsoft Visual studio is that correct? How could I upgrade the code on my unit with my Mac. I have done some .c coding using xcode and terminal but nothing while flashing a USB device. Also Is there a cable that I can use to connect to it? If I were to put a header pin in could I use this cable that I have
Let me know what direction I need to get pushed in.
Thanks
Shane