Lab_Seven_Part_Two

Lab_Seven_Part_Two - start I2C_Init() ClearLCD() InitADC()...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: start I2C_Init() ClearLCD() InitADC() ADCSRB = 0x00 unsigned char string[16] = {'[',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',']'} (;;) (ReadADC(0b01000001) < 20) yes end no unsigned char slendy[16] = {'[',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',']'} strcpy(string,slendy) SetLcdCursor(0x40) DataSize = sizeof (string) SendLcdData(string) yes (ReadADC(0b01000001) > 20 && ReadADC(0b01000001) < 73) no unsigned char slendy[16] = {'[','*',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',']'} strcpy(string,slendy) SetLcdCursor(0x40) DataSize = sizeof (string) SendLcdData(string) yes (ReadADC(0b01000001) > 73 && ReadADC(0b01000001) < 146) no unsigned char slendy[16] = {'[','*','*',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',']'} strcpy(string,slendy) SetLcdCursor(0x40) DataSize = sizeof (string) SendLcdData(string) yes (ReadADC(0b01000001) > 146 && ReadADC(0b01000001) < 219) no unsigned char slendy[16] = {'[','*','*','*',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',']'}...
View Full Document

This note was uploaded on 11/21/2011 for the course ECE 3411 taught by Professor Park during the Fall '11 term at UConn.

Page1 / 4

Lab_Seven_Part_Two - start I2C_Init() ClearLCD() InitADC()...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online