This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.serial.*; | |
Serial myPort; | |
String val; | |
String forrige = "x"; | |
PrintWriter output; | |
int day; | |
int min; | |
int time; | |
int mon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <MFRC522.h> | |
#include <LiquidCrystal.h> | |
constexpr uint8_t RST_PIN = 9; | |
constexpr uint8_t SS_PIN = 10; // Setup for RFID leseren | |
MFRC522 mfrc522(SS_PIN, RST_PIN); | |
byte readCard[4]; // Hvor det leste kortet lagres | |
String navn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int rod = 10; | |
int gronn = 11; | |
int blaa = 9; | |
int r = 0; | |
int b = 0; | |
void setup() { | |
pinMode(rod, OUTPUT); | |
pinMode(gronn, OUTPUT); | |
pinMode(blaa, OUTPUT); |