Skip to content

Instantly share code, notes, and snippets.

View KazuyukiEguchi's full-sized avatar

Kazuyuki Eguchi KazuyukiEguchi

View GitHub Profile
@KazuyukiEguchi
KazuyukiEguchi / AndroidManifest.xml
Created June 17, 2018 13:53
Android Things 1.0.1搭載のRaspberry Pi 3に、USB接続のFelicaリーダーを繋いで、Felicaのカードを読んでみる ref: https://qiita.com/KazuyukiEguchi/items/8ed62198561449e4d64a
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jp.eguchi.android.androidthingstest5">
<uses-feature android:name="android.hardware.usb.host"/>
<application>
<uses-library android:name="com.google.android.things" />
<activity android:name=".MainActivity">
@KazuyukiEguchi
KazuyukiEguchi / AndroidManifest.xml
Last active June 17, 2018 01:09
Android端末を使って、NFC Tagに書き込むプログラムをkotlinで書いてみた ref: https://qiita.com/KazuyukiEguchi/items/8fe6b4b55ef08cc1db93
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jp.eguchi.android.nfc_writer">
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
@KazuyukiEguchi
KazuyukiEguchi / AndroidManifest.xml
Created June 11, 2018 17:26
Android Things 1.0.1で、iBeaconの信号を受信してみる ref: https://qiita.com/KazuyukiEguchi/items/e48ae81f004b5183f08d
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jp.eguchi.android.androidthingstest4">
<uses-feature android:name="android.hardware.bluetooth_le" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
@KazuyukiEguchi
KazuyukiEguchi / AndroidManifest.xml
Last active June 4, 2018 03:21
Android Things 1.0& Kotlinで、Raspberry Pi キャラクタ液晶ディスプレイモジュールキット バックライト付を動かしてみた。 ref: https://qiita.com/KazuyukiEguchi/items/503274b88b145614a39c
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="jp.eguchi.android.androidthingstest3">
<uses-permission android:name="com.google.android.things.permission.USE_PERIPHERAL_IO"/>
<application>
<uses-library android:name="com.google.android.things" />
<activity android:name=".MainActivity">
@KazuyukiEguchi
KazuyukiEguchi / pushwio.ino
Last active May 3, 2018 13:58
SORACOM Technology Camp 2018の会場で販売していた『PUSH for Wio』を組み立ててみました ref: https://qiita.com/KazuyukiEguchi/items/79b4a3af1d06757ddb08
// Wio LTE用 PUSH-WIO用のコード
// Programed by Kazuyuki Eguchi
// Serial端子に、秋月GPSGROVE - 4ピン-ジャンパメスケーブル 20cm経由で接続
// D38端子に、Grove Button(P)を接続
// TinyGPSPlus 1.0.2 http://arduiniana.org/libraries/tinygpsplus/
#include <WioLTEforArduino.h>
#include <TinyGPS++.h>
--- START ---------------------------------------------------
### ## Power supply ON.
### Turn on or reset.
--- START ---------------------------------------------------
### I/O Initialize.
### Power supply ON.
### Turn on or reset.
### Connecting to "soracom.io".
### Setup completed.
@KazuyukiEguchi
KazuyukiEguchi / BLE_MIDI.ino
Last active April 27, 2018 22:19
M5STACK(ESP32)でBLE MIDI経由で受信してみよう! ref: https://qiita.com/KazuyukiEguchi/items/e166ede5c97438b90187
// M5STACK(ESP32)向け BLE MIDI
// Programed by Kazuyuki Eguchi 2018/04/24
#include <M5Stack.h>
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEServer.h>
#define MIDI_SERVICE_UUID "03b80e5a-ede8-4b33-a751-6ce34ec4c700"
#define MIDI_CHARACTERISTIC_UUID "7772e5db-3868-4112-a1a9-f2669d106bf3"
@KazuyukiEguchi
KazuyukiEguchi / test.ino
Created April 22, 2018 10:54
M5STACK(ESP32)でiBeaconを受信してみる ref: https://qiita.com/KazuyukiEguchi/items/159e628ab9f7fcc74541
// M5STACK(ESP32)でiBeaconを受信してみる
// 2018/04/22 Programed by Kazuyuki Eguchi
#include <BLEDevice.h>
#include <BLEUtils.h>
#include <BLEScan.h>
#include <BLEAdvertisedDevice.h>
int scanTime = 10; // スキャン完了までの秒数
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '9.0'
target 'Test Mamorio' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Test Mamorio
pod 'MamorioSDK', :git => 'https://github.com/otoshimono/mamorio-sdk-ios-bin.git'
@KazuyukiEguchi
KazuyukiEguchi / DebugConsole
Last active February 28, 2018 18:10
iOS11でCore NFCを使って、タグのIDを読み取る ref: http://qiita.com/KazuyukiEguchi/items/c3a92cf75689938d8e59
2017-11-08 18:49:38.074386+0900 TestNFC[4847:694798] refreshPreferences: HangTracerEnabled: 0
2017-11-08 18:49:38.074420+0900 TestNFC[4847:694798] refreshPreferences: HangTracerDuration: 500
2017-11-08 18:49:38.074431+0900 TestNFC[4847:694798] refreshPreferences: ActivationLoggingEnabled: 0 ActivationLoggingTaskedOffByDA:0
didDetectNDEFs
01:27:00:54:f2:e8:88:db
3
goo.gl/OmhbM
didDetectNDEFs
04:6f:f3:c9:b7:02:80
5