Arduino SAS Host
Arduino SAS Host
h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
int inChar;
int inChar1;
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
void loop() {
UBRR1H = UBRRH_VALUE;
UBRR1L = UBRRH_VALUE;
#if USE_2x
UCSR1A |= _BV(U2X1);
#else
UCSR1A &= ~(_BV(U2X1));
#endif
UCSR1B = _BV(UCSZ12);
UCSR1C = _BV(UCSZ11)| _BV(UCSZ10);
UCSR1B = _BV(RXEN1) | _BV(TXEN1);
{
unsigned char resh, resl;