RCBControllerでモータを制御します。うおーるぼっとも動かせました。
Dependencies: BLE_API_Native_IRC TB6612FNG2 mbed
Fork of BLE_RCBController by
- 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
- ライブラリ類はUpdateしないでください。コンパイルエラーになります。
うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。
RCBControllerでうおーるぼっとを操縦する例
RCBControllerでの操縦は次の4種類あります。 それぞれうおーるぼっとの動きが異なりますので試してみてください。
- 左十字ボタン
- 左のみアナログ
- 右のみアナログ
- 両方アナログ
うおーるぼっと(LPC1768のソケット)とHRM1017の接続はこれです。
LPC1768 ー HRM1017
p11 ーーー P0_0
p12 ーーー P0_1
p13 ーーー P0_28
p14 ーーー P0_29
p21 ーーー P0_30
p22 ーーー P0_25
GND ーーー GND
HRM1017の電源はうおーるぼっとのUSBコネクタからとります。
BLE_API_Native_IRC/hw/nRF51822n/nordic/nrf-sdk/s110/softdevice_assert.h@0:8c643bfe55b7, 2014-07-10 (annotated)
- Committer:
- jksoft
- Date:
- Thu Jul 10 14:21:52 2014 +0000
- Revision:
- 0:8c643bfe55b7
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:8c643bfe55b7 | 1 | /* |
jksoft | 0:8c643bfe55b7 | 2 | * Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved. |
jksoft | 0:8c643bfe55b7 | 3 | * |
jksoft | 0:8c643bfe55b7 | 4 | * The information contained herein is confidential property of Nordic Semiconductor. The use, |
jksoft | 0:8c643bfe55b7 | 5 | * copying, transfer or disclosure of such information is prohibited except by express written |
jksoft | 0:8c643bfe55b7 | 6 | * agreement with Nordic Semiconductor. |
jksoft | 0:8c643bfe55b7 | 7 | * |
jksoft | 0:8c643bfe55b7 | 8 | */ |
jksoft | 0:8c643bfe55b7 | 9 | |
jksoft | 0:8c643bfe55b7 | 10 | /** @brief Utilities for verifying program logic |
jksoft | 0:8c643bfe55b7 | 11 | */ |
jksoft | 0:8c643bfe55b7 | 12 | |
jksoft | 0:8c643bfe55b7 | 13 | #ifndef SOFTDEVICE_ASSERT_H_ |
jksoft | 0:8c643bfe55b7 | 14 | #define SOFTDEVICE_ASSERT_H_ |
jksoft | 0:8c643bfe55b7 | 15 | |
jksoft | 0:8c643bfe55b7 | 16 | #include <stdint.h> |
jksoft | 0:8c643bfe55b7 | 17 | #include "nordic_global.h" |
jksoft | 0:8c643bfe55b7 | 18 | |
jksoft | 0:8c643bfe55b7 | 19 | /** @brief This function handles assertions. |
jksoft | 0:8c643bfe55b7 | 20 | * |
jksoft | 0:8c643bfe55b7 | 21 | * |
jksoft | 0:8c643bfe55b7 | 22 | * @note |
jksoft | 0:8c643bfe55b7 | 23 | * This function is called when an assertion has triggered. |
jksoft | 0:8c643bfe55b7 | 24 | * |
jksoft | 0:8c643bfe55b7 | 25 | * |
jksoft | 0:8c643bfe55b7 | 26 | * @param line_num The line number where the assertion is called |
jksoft | 0:8c643bfe55b7 | 27 | * @param file_name Pointer to the file name |
jksoft | 0:8c643bfe55b7 | 28 | */ |
jksoft | 0:8c643bfe55b7 | 29 | void assert_softdevice_callback(uint16_t line_num, const uint8_t *file_name); |
jksoft | 0:8c643bfe55b7 | 30 | |
jksoft | 0:8c643bfe55b7 | 31 | |
jksoft | 0:8c643bfe55b7 | 32 | /*lint -emacro(506, ASSERT) */ /* Suppress "Constant value Boolean */ |
jksoft | 0:8c643bfe55b7 | 33 | /*lint -emacro(774, ASSERT) */ /* Suppress "Boolean within 'if' always evaluates to True" */ \ |
jksoft | 0:8c643bfe55b7 | 34 | /** @brief Check intended for production code |
jksoft | 0:8c643bfe55b7 | 35 | * |
jksoft | 0:8c643bfe55b7 | 36 | * Check passes if "expr" evaluates to true. */ |
jksoft | 0:8c643bfe55b7 | 37 | #define ASSERT(expr) \ |
jksoft | 0:8c643bfe55b7 | 38 | if (expr) \ |
jksoft | 0:8c643bfe55b7 | 39 | { \ |
jksoft | 0:8c643bfe55b7 | 40 | } \ |
jksoft | 0:8c643bfe55b7 | 41 | else \ |
jksoft | 0:8c643bfe55b7 | 42 | { \ |
jksoft | 0:8c643bfe55b7 | 43 | assert_softdevice_callback((uint16_t)__LINE__, (uint8_t *)__FILE__); \ |
jksoft | 0:8c643bfe55b7 | 44 | /*lint -unreachable */ \ |
jksoft | 0:8c643bfe55b7 | 45 | } |
jksoft | 0:8c643bfe55b7 | 46 | |
jksoft | 0:8c643bfe55b7 | 47 | #endif /* SOFTDEVICE_ASSERT_H_ */ |