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: nRF51_Vdd TextLCD BME280
select_example.cpp
- Committer:
- kenjiArai
- Date:
- 2018-04-14
- Revision:
- 1:9011c83e4178
- Child:
- 2:47ad8c48224e
File content as of revision 1:9011c83e4178:
/*
* AE-TYBLE16 Module example programs
*
* Copyright (c) 2018 Kenji Arai / JH1PJL
* http://www.page.sannet.ne.jp/kenjia/index.html
* https://os.mbed.com/users/kenjiArai/
* Created: April 7th, 2018
* Revised: April 14th, 2018
*/
/*
You can select several examples as followings.
0. 0_Blinky_LED
LED Blinky
1. 1_Check_RTC
Check RTC function
-> Time is not so accurate because 32.768KHz is made by Internal RC osc.
2. 2_EddyStoneBeacon
Demonstration sample program EddyStone Beacon
3. 3_Heart_Rate
Demonstration sample program Heart Rate
4. 4_RCBController
Potential usage for Radio Controller (RCB Controller)
5. 5_SDCard
Demonstration sample program SD Card
6. 6_Thermo
Demonstration sample program Thermometer
-> If you have I2C temperature sensor, you can connect it.
-> LCD can display the data.
7 & 8. 7_Uart_Client & 8_Uart_Server
Uart Client(Central) and Server(Peripheral)
-> PLEASE SET VCOM BAUDRATE IS 115200
9. 9_Monitor
Check nRF51 CPU functions
*/
#define EXAMPLE_NUMBER 9
// select 0 to 9
//----------------- You don't need any modification ----------------------------
#if EXAMPLE_NUMBER == 0
#define EXAMPLE_0_BLINKY_LED
#ifdef EXAMPLE_0_BLINKY_LED
#include "0_Blinky_LED/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 1
#define EXAMPLE_1_CHECK_RTC
#ifdef EXAMPLE_1_CHECK_RTC
#include "1_Check_RTC/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 2
#define EXAMPLE_2_EDDYSTONE_BEACON
#ifdef EXAMPLE_2_EDDYSTONE_BEACON
#include "2_EddyStoneBeacon/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 3
#define EXAMPLE_3_HEART_RATE
#ifdef EXAMPLE_3_HEART_RATE
#include "3_Heart_Rate/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 4
#define EXAMPLE_4_RCB_CONTROLLER
#ifdef EXAMPLE_4_RCB_CONTROLLER
#include "4_RCBController/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 5
#define EXAMPLE_5_SDCARD
#ifdef EXAMPLE_5_SDCARD
#include "5_SDCard/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 6
#define EXAMPLE_6_THERMO
#ifdef EXAMPLE_6_THERMO
#include "6_Thermo/main.cpp"
#endif
#elif EXAMPLE_NUMBER == 7
#define EXAMPLE_7_UART_CLIENT
#ifdef EXAMPLE_7_UART_CLIENT
#include "7_Uart_Client/main.cpp"
#warning "Please set VCOM baudrate -> 115200 ""
#endif
#elif EXAMPLE_NUMBER == 8
#define EXAMPLE_8_UART_SERVER
#ifdef EXAMPLE_8_UART_SERVER
#include "8_Uart_Server/main.cpp"
#warning "Please set VCOM baudrate -> 115200 ""
#endif
#elif EXAMPLE_NUMBER == 9
#define EXAMPLE_9_MONITOR
#ifdef EXAMPLE_9_MONITOR
#include "9_Monitor/main.cpp"
#endif
#else
#error " Please set 0 to 9 number for EXAMPLE_NUMBER!!"
#endif