This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
BCM20732S HCI UART is connected to Serial RX/TX pins on the Arduino Due. | |
BCM20732S Reset pin is connected to BLE_RESET_PIN | |
**/ | |
#include <Arduino.h> | |
#define BLE_RESET_PIN 31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = "90036F4920203080030049202030", | |
res = []; | |
for (var i = 0; i < str.length; i += 2) { | |
var hex = str.substr(i, 2), | |
num = parseInt(hex, 16), | |
char = String.fromCharCode(num) | |
pr = hex + "\t" + num + "\t" + char + "\n"; | |
res.push(pr); |
NewerOlder