thelittlesthobo
New Member
Hello
I am new to picaxe but have some basic knowledge of C. I am trying to make a fault code reader for a product that uses flash codes for its DTCs. So im using a 20M2 to read these flash codes and then display the relevant faults (max 5) on the OLED display.
Firstly how do I declare Integers, variables etc so that I may store values to them to use within te program
and second, I want to measure the length of a 0V period on pin7 using the command 'pulsin' and then use this info in a followinf IF statement which wiil decide on which function to go to???
If I can get the hang of this, I think I may have most of my problems sorted, apart from arrays actually. I want to store up to 5 faults in an array to later print to the OLED display. The faults are numbered 1 - 10 and I planned on putting the messages/fault descriptin in the user defined messages within the OLED AXE133Y Firmware File.
Any help would be greatly appreciated.
Thanks
Robin
I am new to picaxe but have some basic knowledge of C. I am trying to make a fault code reader for a product that uses flash codes for its DTCs. So im using a 20M2 to read these flash codes and then display the relevant faults (max 5) on the OLED display.
Firstly how do I declare Integers, variables etc so that I may store values to them to use within te program
and second, I want to measure the length of a 0V period on pin7 using the command 'pulsin' and then use this info in a followinf IF statement which wiil decide on which function to go to???
If I can get the hang of this, I think I may have most of my problems sorted, apart from arrays actually. I want to store up to 5 faults in an array to later print to the OLED display. The faults are numbered 1 - 10 and I planned on putting the messages/fault descriptin in the user defined messages within the OLED AXE133Y Firmware File.
Any help would be greatly appreciated.
Thanks
Robin