{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab_Eight_Part_One

Lab_Eight_Part_One - int FahrenheitOnes =(C2FConvert 10 100...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
start I2C_Init() InitADC() ClearLCD() (;;) SetLcdCursor(0x00) voltage = ((ReadADC(0x00) * 5) / 1024) voltage1 = ((((ReadADC(0x00) * 5) % 1024) * 10) / 1024) voltage2 = ((((((ReadADC(0x00) * 5) % 1024) * 10) % 1024) * 10) / 1024) int millivoltage = (voltage * 1000) int millivoltage1 = (voltage1 * 100) int millivoltage2 = (voltage2 * 10) int C2FConvert = (((((millivoltage + millivoltage1 + millivoltage2) - 400) / 19.5) * 1.8) + 32) int FahrenheitTens = (C2FConvert / 10)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int FahrenheitOnes = (((C2FConvert * 10) % 100) / 10) int FahrenheitDecimal = (((((millivoltage + millivoltage1 + millivoltage2) - 400) / 19.5) * 1.8) + 32) * 10 - ((FahrenheitTens * 100) + (FahrenheitOnes * 10)) unsigned char slendy[15] = {' ',' ',' ',' ',' ',FahrenheitTens+0x30,FahrenheitOnes+0x30,'.',FahrenheitDecimal+0x30,0xDF,'F',' ',' ',' ',' ',' '} DataSize = sizeof (slendy) SendLcdData(slendy) yes no end...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern