arduino code error
Budget: ₹600 – ₹700 INR
In file included from C:\Users\hp\Desktop\arduinoMkrWifi1010YmLabsGermsDisinfectingMachine\arduinoMkrWifi1010YmLabsGermsDisinfectingMachine.ino:17:0:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void lcd_init()':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:25:2: error: 'DDRB' was not declared in this scope
DDRB=0xFF;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:27:8: error: lvalue required as left operand of assignment
PORTB=0x20;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void latch()':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x04;
~~~~~^~~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: note: candidate: operator&=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:9: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB&=~0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: error: no match for 'operator|=' (operand types are '_EPortType' and 'int')
PORTB|=0x04;
~~~~~^~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: note: candidate: operator|=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:8: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB|=0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x04;
~~~~~^~~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: note: candidate: operator&=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:9: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB&=~0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void lcd_cmd(unsigned char)':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:54:7: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x07;
~~~~~^~~~~~~
PORTB=((str[k]&(0x0F))*16)|0x01;
^~~~
Multiple libraries were found for "LCD.h"
Used: C:\Users\hp\Documents\Arduino\libraries\lcd
Not used: C:\Users\hp\Documents\Arduino\libraries\1027037-f5231e9d1ae62b25816934e55cc64ec8d104c803
exit status 1
Error compiling for board Arduino MKR WiFi 1010.
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void lcd_init()':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:25:2: error: 'DDRB' was not declared in this scope
DDRB=0xFF;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:27:8: error: lvalue required as left operand of assignment
PORTB=0x20;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void latch()':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x04;
~~~~~^~~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: note: candidate: operator&=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:36:9: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB&=~0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: error: no match for 'operator|=' (operand types are '_EPortType' and 'int')
PORTB|=0x04;
~~~~~^~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: note: candidate: operator|=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:38:8: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB|=0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x04;
~~~~~^~~~~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: note: candidate: operator&=(_EPortType&, int) <built-in>
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:6: note: conversion of argument 1 would be ill-formed:
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:40:9: error: cannot bind non-const lvalue reference of type '_EPortType&' to an rvalue of type '_EPortType'
PORTB&=~0x04;
^~~~
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h: In function 'void lcd_cmd(unsigned char)':
C:\Users\hp\Documents\Arduino\libraries\lcd/LCD.h:54:7: error: no match for 'operator&=' (operand types are '_EPortType' and 'int')
PORTB&=~0x07;
~~~~~^~~~~~~
PORTB=((str[k]&(0x0F))*16)|0x01;
^~~~
Multiple libraries were found for "LCD.h"
Used: C:\Users\hp\Documents\Arduino\libraries\lcd
Not used: C:\Users\hp\Documents\Arduino\libraries\1027037-f5231e9d1ae62b25816934e55cc64ec8d104c803
exit status 1
Error compiling for board Arduino MKR WiFi 1010.