Lcd. LiquidCrystal_I2C lcd(0x3F,16,2) // set the LCD address to 0x3F Note: This code might not work exactly as you need to calibrate the LDR according to your device. Family Mapping to TRM Family Technical Reference. Lcd.print(ADC_O_1, BIN) // Converting to binary formÄifferent colors have different wavelengths and hence different energies as the energy of an electromagnetic wave are dependent on its wavelength and frequency. Analog-to-Digital Converter (ADC) Module Reference Guide SPRU812BSeptember 2007Revised April 2020 Analog-to-Digital Converter (ADC) Module This peripheral reference guide has been combined into a family-specific technical reference manual (TRM). Lcd.setCursor(4,0) //Set cursor to character 4 on line 0 LiquidCrystal_I2C lcd(0x3F,16,2) // Address of the I2C module and LCD size #define F_CPU 16000000UL // Setting CPU Frequency 16MHz Complete Code: #include // AVR/IO.H header file
0 Comments
Leave a Reply. |