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.
Dependencies: BME280 TextLCD nRF51_Vdd
Fork of TYBLE16_mbedlized_os5_BASE by
Revision 0:6eea047171a3, committed 2018-04-10
- Comitter:
- kenjiArai
- Date:
- Tue Apr 10 12:43:29 2018 +0000
- Child:
- 1:9011c83e4178
- Commit message:
- check program for mbed-os5 special library only for TYBLE16
Changed in this revision
| TYBLE16_os5_BASE.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TYBLE16_os5_BASE.lib Tue Apr 10 12:43:29 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/kenjiArai/code/TYBLE16_os5_BASE/#d626609f0029
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Apr 10 12:43:29 2018 +0000
@@ -0,0 +1,45 @@
+/*
+ * Mbed Application program / Blinky
+ *
+ * Copyright (c) 2018 Kenji Arai / JH1PJL
+ * http://www.page.sannet.ne.jp/kenjia/index.html
+ * http://mbed.org/users/kenjiArai/
+ * Created: April 10th, 2018
+ * Revised: April 10th, 2018
+ */
+
+// Include --------------------------------------------------------------------
+#include "mbed.h"
+#include "TYBLE16_BASE.h"
+
+// Definition -----------------------------------------------------------------
+
+// Constructor ----------------------------------------------------------------
+DigitalOut my_led(LED1);
+Serial pc(USBTX, USBRX);
+
+// RAM ------------------------------------------------------------------------
+
+// ROM / Constant data --------------------------------------------------------
+char *const opngmsg =
+ "\x1b[2J\x1b[H"__FILE__ "\r\n"__DATE__ " " __TIME__ " (UTC)\r\n""\r\n";
+
+// Function prototypes --------------------------------------------------------
+
+//------------------------------------------------------------------------------
+// Control Program
+//------------------------------------------------------------------------------
+int main()
+{
+ uint32_t count = 0;
+
+ pc.puts(opngmsg);
+ // Check TYBLE-16 configuration
+ cpu_sys();
+ compile_condition();
+ while(true) {
+ my_led = !my_led;
+ pc.printf("%8u\r\n", count++);
+ Thread::wait(1000);
+ }
+}
