Skip to content

Instantly share code, notes, and snippets.

@Shadow6363
Shadow6363 / rfid_door_lock.ino
Last active December 15, 2015 07:18
Arduino Code for RFID Door Lock
int lockRelayPin = 7;
int lghtRelayPin = 6;
int rfidResetPin = 13;
int photocellPin = 0;
int photocellReading = 0;
int invalidCount = 0;
char tag1[13] = "SECRET";
char tag2[13] = "SECRET";
char tag3[13] = "SECRET";
case 'E': // Receive sensor filtering values
aref = readFloatSerial();
minArmedThrottle = readFloatSerial();
break;
case 'F': // Receive transmitter smoothing values
receiverXmitFactor = readFloatSerial();
for(byte channel = XAXIS; channel<LASTCHANNEL; channel++) {
receiverSmoothFactor[channel] = readFloatSerial();
#define ARDUINO_H
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#define HMC5883L_Address 0x3C
#define ConfigurationRegisterA 0x00
#define ConfigurationRegisterB 0x01
#include "application.h"
uint8_t address;
int8_t status;
void setup() {
Serial.begin(115200);
Wire.begin();
}
To [email protected]:level1
! [rejected] master -> master (fetch first)
error: failed to push some refs to '[email protected]:level1'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards'
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000

Keybase proof

I hereby claim:

  • I am shadow6363 on github.
  • I am shadow6363 (https://keybase.io/shadow6363) on keybase.
  • I have a public key ASB84gIyfO5ovMubyOketxNRU1E6wmC5fYTz8RIThwZJNgo

To claim this, I am signing this object: