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
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
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
com.apple.SharedWebCredentialViewService | |
com.apple.FacebookAccountMigrationDialog | |
com.apple.mobilesafari | |
com.apple.AdSheetPhone | |
com.apple.share | |
com.apple.appleaccount.AACredentialRecoveryDialog | |
com.apple.Preferences | |
com.apple.WebContentFilter.remoteUI.WebContentAnalysisUI | |
com.apple.Passbook | |
com.apple.TrustMe |
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
package tw.com.acme_soft.mibandscanner; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothDevice; | |
import android.util.Log; | |
import android.widget.Toast; | |
import com.zhaoxiaodan.miband.ActionCallback; | |
import com.zhaoxiaodan.miband.MiBand; | |
import com.zhaoxiaodan.miband.listeners.NotifyListener; |
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 bleancs = require('ble-ancs') | |
var t = require('transit-js') | |
var writer = t.writer('json') | |
var reader = t.reader('json') | |
function status(v) { | |
return t.map([t.keyword('type'), t.keyword('status'), | |
t.keyword('value'), t.keyword(v)])} | |
function notif(v) { | |
return t.map([t.keyword('type'), t.keyword('notification'), |
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
/* | |
* Arduino Serial Bypass - use an Arduino as a dumb USB 2 Serial Converter | |
* | |
* This code makes the Arduino not interfere with pins 0 and 1 | |
* which are connected to RX and TX on the FTDI chip. This allows | |
* the data coming from the FTDI USB 2 Serial chip to flow directly | |
* to another device. Since RX and TX are labeled from the Arduino's | |
* point of view, don't cross the wires, but plug the device's | |
* RX wire into the RX pin 0 and the TX wire into the TX pin 0. | |
* |
NewerOlder