Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:cf083410d646, committed 2018-11-08
- Comitter:
- duchonic
- Date:
- Thu Nov 08 08:06:56 2018 +0000
- Commit message:
- only ISO15693 tags
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CR95HF.lib Thu Nov 08 08:06:56 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/duchonic/code/CR95HF/#8fce71523e13
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Nov 08 08:06:56 2018 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include "main.h"
+#include <CR95HF.h>
+
+DigitalOut ledMain(D13);
+Serial pcDevice(USBTX, USBRX);
+
+Thread thread;
+
+/**
+ * @brief thread for nfc stuff
+ */
+void nfc_thread()
+{
+ CR95HF nfcDevice(D8,D2);
+ nfcDevice.Init();
+
+ while (true) {
+ nfcDevice.ConfigManagerTagHunting();
+ wait(0.5);
+ }
+}
+
+
+
+int main()
+{
+ pcDevice.baud(115200);
+
+ pcDevice.printf("--- Startup NFC Demo ---\r\n");
+
+ thread.start(nfc_thread);
+
+ while (true) {
+ ledMain = !ledMain;
+ wait(0.2);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h Thu Nov 08 08:06:56 2018 +0000
@@ -0,0 +1,9 @@
+#include "mbed.h"
+
+#ifndef MAIN_h
+#define MAIN_h
+
+#define ASSERT(expr) ((expr) ? (void)0U : mbed_error_printf("assert %s line:%d\n", __FILE__, __LINE__) )
+
+
+#endif
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Nov 08 08:06:56 2018 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os.git/#bfb43799afe571b26895d021f9932c274cff58c6