Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop(){
- while (!Serial);
- barCodeSerial.listen();
- if(barCodeSerial.available()){
- while(barCodeSerial.available()){
- delay(1);
- code += (char)barCodeSerial.read();
- }
- Serial.println(code);
- code = "";
- }
- //Rfid.listen();
- if(Rfid.available() > 0 ){
- Serial.println(F("RFID"));
- Serial.println(F(" | "));
- // as long as there is data available...
- while(Rfid.available() > 0 ){
- // read a byte
- int r = Rfid.read();
- // print it to the serial monitor
- Serial.print(r, DEC);
- Serial.print(F(" "));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement