AndroidのBLEラジコンプロポアプリ「BLEPropo」と接続し、RCサーボとDCモータを制御するプログラムです。 mbed HRM1017で動作を確認しています。 BLEPropo → https://github.com/lipoyang/BLEPropo
Fork of BLE_RCBController2 by
BLEを使ったAndroid用ラジコンプロポアプリ「BLEPropo」に対応するmbed HRM1017用ファームウェアです。
BLEPropoは、GitHubにて公開中。
https://github.com/lipoyang/BLEPropo
ラジコンは、mbed HRM1017とRCサーボやDCモータを組み合わせて作ります。
HRM1017/nordic/nordic_global.h@7:505a9a98b776, 2015-03-14 (annotated)
- Committer:
- lipoyang
- Date:
- Sat Mar 14 11:51:38 2015 +0000
- Revision:
- 7:505a9a98b776
- Parent:
- 4:ebda47d22091
- adjust servo center position
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 1:48f6e08a3ac2 | 1 | /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. |
jksoft | 1:48f6e08a3ac2 | 2 | * |
jksoft | 1:48f6e08a3ac2 | 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
jksoft | 1:48f6e08a3ac2 | 4 | * you may not use this file except in compliance with the License. |
jksoft | 1:48f6e08a3ac2 | 5 | * You may obtain a copy of the License at |
jksoft | 1:48f6e08a3ac2 | 6 | * |
jksoft | 1:48f6e08a3ac2 | 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
jksoft | 1:48f6e08a3ac2 | 8 | * |
jksoft | 1:48f6e08a3ac2 | 9 | * Unless required by applicable law or agreed to in writing, software |
jksoft | 1:48f6e08a3ac2 | 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
jksoft | 1:48f6e08a3ac2 | 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
jksoft | 1:48f6e08a3ac2 | 12 | * See the License for the specific language governing permissions and |
jksoft | 1:48f6e08a3ac2 | 13 | * limitations under the License. |
jksoft | 1:48f6e08a3ac2 | 14 | */ |
jksoft | 1:48f6e08a3ac2 | 15 | |
jksoft | 1:48f6e08a3ac2 | 16 | #ifndef _NORDIC_GLOBAL_H_ |
jksoft | 1:48f6e08a3ac2 | 17 | #define _NORDIC_GLOBAL_H_ |
jksoft | 1:48f6e08a3ac2 | 18 | |
jksoft | 1:48f6e08a3ac2 | 19 | /* There are no global defines in mbed, so we need to define */ |
jksoft | 1:48f6e08a3ac2 | 20 | /* mandatory conditional compilation flags here */ |
jksoft | 1:48f6e08a3ac2 | 21 | #define NRF51 |
jksoft | 1:48f6e08a3ac2 | 22 | #define DEBUG_NRF_USER |
jksoft | 1:48f6e08a3ac2 | 23 | #define BLE_STACK_SUPPORT_REQD |
jksoft | 1:48f6e08a3ac2 | 24 | #define BOARD_PCA10001 |
jksoft | 1:48f6e08a3ac2 | 25 | |
jksoft | 1:48f6e08a3ac2 | 26 | #endif |