From ab1bd5fa321003667cdeed547bb1b6fd327c6d84 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Fri, 28 Jun 2019 15:09:48 +0200 Subject: [PATCH] Bumping version to 1.4.14 --- RELEASE_NOTES.md | 2 +- src/Client/ReleaseNotes.fs | 4 ++-- src/PiServer/read-tag.js | 15 ++++++++++++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e14a9df..adf9153 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,6 @@ # Release Notes -## 1.4.13 - 2019-06-28 +## 1.4.14 - 2019-06-28 * Update deps * Use --self-contained for Firmware * Hook into view diff --git a/src/Client/ReleaseNotes.fs b/src/Client/ReleaseNotes.fs index 98046a3..0a92e15 100644 --- a/src/Client/ReleaseNotes.fs +++ b/src/Client/ReleaseNotes.fs @@ -1,13 +1,13 @@ module internal ReleaseNotes -let Version = "1.4.13" +let Version = "1.4.14" let IsPrerelease = false let Notes = """ # Release Notes -## 1.4.13 - 2019-06-28 +## 1.4.14 - 2019-06-28 * Update deps * Use --self-contained for Firmware * Hook into view diff --git a/src/PiServer/read-tag.js b/src/PiServer/read-tag.js index 890774e..978c71d 100644 --- a/src/PiServer/read-tag.js +++ b/src/PiServer/read-tag.js @@ -1,7 +1,16 @@ "use strict"; -const mfrc522 = require("mfrc522-rpi"); -//# Init WiringPi with SPI Channel 0 -mfrc522.initWiringPi(0); +const Mfrc522 = require("mfrc522-rpi"); +const SoftSPI = require("rpi-softspi"); + +const softSPI = new SoftSPI({ + clock: 23, // pin number of SCLK + mosi: 19, // pin number of MOSI + miso: 21, // pin number of MISO + client: 24 // pin number of CS + }); + +// GPIO 24 can be used for buzzer bin (PIN 18), Reset pin is (PIN 22). +const mfrc522 = new Mfrc522(softSPI).setResetPin(22).setBuzzerPin(18); function decimalToHex(d) { var padding = 2;