GithubHelp home page GithubHelp logo

yukai / konashi-ios-sdk Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 37.0 1.15 MB

konashi iOS SDK

Home Page: http://konashi.ux-xu.com

License: Apache License 2.0

Ruby 0.45% Objective-C 42.52% Shell 0.01% HTML 48.11% CSS 2.45% JavaScript 0.39% SCSS 4.42% C 1.65%
ble bluetooth ios konashi

konashi-ios-sdk's People

Contributors

0x0c avatar aopico avatar hideyuki avatar jcomeme avatar kikoishimoto avatar kiryuxxu avatar kotobuki avatar mash avatar monakaz avatar naoty avatar sagiii avatar soh335 avatar yuroyoro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

konashi-ios-sdk's Issues

ドキュメント生成ツール

こちらのドキュメント生成ツールを使用すると、簡単にドキュメントを作成することができます。
Apple公式風のドキュメントを生成できます。
http://gentlebytes.com/appledoc/
http://dev.classmethod.jp/smartphone/iphone/ios-appledoc-1/
http://blog.morizotter.com/2014/04/27/appledoc-settings-for-project/

こちらを使うと、開発者に慣れ親しんでおりかつリンクでメソッド間の移動ができるドキュメントが作れるので、使ってみてはいかがでしょうか?

iPad対応

アクションシートの表示させ方が異なるため、現状では非対応。
工数としては大きくないので、近日対応予定。

I2Cのサンプル

現状のI2Cサンプルはwriteのみを使用しているようですが、readを使うサンプルも
あれば助かります。
i2cRestartCondition、i2cReadRequestあたりのタイミング的な配慮など。

Digital I/O 関数の、引数や戻り値のビットとピン番号の対応説明があると良い

Digital I/O (PIO) のドキュメントについて。
pinModeAll, pinPullupAll, digitalReadAll, digitalWriteAll については、引数あるいは戻り値のどのビットがどのピン番号に対応しているか、一言、説明があると良いように思います。

http://konashi.ux-xu.com/documents/#pio-pinModeAll
http://konashi.ux-xu.com/documents/#pio-pinPullupAll
http://konashi.ux-xu.com/documents/#pio-digitalReadAll
http://konashi.ux-xu.com/documents/#pio-digitalWriteAll

"findWithName"が使えないです。

初めまして、

"findWithName"についての質問です。
アプリの立ち上げ時に指定のkonashiに接続する機能を、”findWithName”を使い実装を試みました。
しかし”find”の実行時と同じく接続先リストが表示されます。

if ([Konashi findWithName:@"konashi2-f014a6"] == KonashiResultSuccess) {

       NSLog(@"findWithName is true!"); 

    }else{

        [Konashi find];

        NSLog(@"findWithName is false!");

}

上記のコードをviewDidLoadに記述、デバッグ結果は「findWithName is true!」ですが、実行結果は変わらず接続先リストが表示されます。これはバグでしょうか?それとも書き方が悪いのでしょうか?ご教授よろしくお願いします。

podspecが古い

podspecが古いままです。
タグの対応やディレクトリの指定を治す必要があります。

I2Cのアドレス指定について

konashiの動作仕様について質問があります。
 
konashi.mの_i2cWriteメソッドの中の処理でunsigned char型のアドレスに対して、MSB方向へビットシフトを行っている部分がありますが、これによって最上位ビットが欠けてしまい、正常なI2Cアドレスがkonashi本体へ伝わっていないように思えます。
(たとえばアドレスが0xC0の場合、シフトで0x80になってwriteValueされています)
 
I2Cを使ってモーターを駆動する「I2Cモータードライバ・モジュール DRV8830」というモジュールを使ってモーターを動かそうとしているのですが
http://strawberry-linux.com/catalog/items?code=12030
 
このドライバはI2Cアドレスが0xC0以上にしか設定できず、まさに上記の問題でデータが転送できていないように思えます。
konashiのI2C設定アドレスが0x7F以下という仕様がドキュメントに記述されていないので、なにか回避策があるのかもしれないと思っていますが、いかがでしょうか?

license

I would appreciate if you could specify license.

LED2点灯サンプル、点灯しない事象について

Getting Startedのプログラムを元にkonashiについているLED2を点灯させようとしたのですが、点灯しません。
bluetooth によるiPhone(5c)との接続は、完了しているみたいです。(ログ出力により、確認)

LED点滅サンプルが動作しない

GettingStartedサンプルでready時にLEDが点滅するようになっているが動作しない。
点滅のサンプルをPWMで点滅、からタイマで点滅に変更する。

スイッチのチャタリング回避

スイッチのチャタリングでON/OFFの繰り返しがそのまま飛んでくる。
回避するためにソフト側で対策する方法があれば。

関数名などの変更反映

チュートリアルのサンプルコードとドキュメントのSyntaxに関数名などの変更が反映されていない。

アプリ起動後初回のconnect後の[Konashi shared].activePeripheralがnil

下記ViewController.mで, konashi-ios-sdkはここのmaster最新で生じました。

#import "ViewController.h"
#import "Konashi.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    [Konashi initialize];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ready) name:KonashiEventReadyToUseNotification object:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)find:(id)sender {
    [Konashi find];
}

- (void)ready
{
    [Konashi pinMode:KonashiLED2 mode:KonashiPinModeOutput];
    [Konashi digitalWrite:KonashiLED2 value:KonashiLevelHigh];
}


@end

Parse & Semantic issue at CBPeripheral+Konashi.m

Build information, specifically the full version.

- X code V-6.4 - konashi-ios-sdk-4.0.2

Steps to reproduce

1. download zip from repo `konashi-ios-sdk` 2. build sample projects from `Konashi.xcworkspace` 3. return error msg 4. konashi-ios-sdk-4.0.2/Konashi/Konashi/Category/CoreBluetooth/CBPeripheral+Konashi.m:33:67: Expected ')' 5. konashi-ios-sdk-4.0.2/Konashi/Konashi/Category/CoreBluetooth/CBPeripheral+Konashi.m:35:48: Use of undeclared identifier 's' 6. konashi-ios-sdk-4.0.2/Konashi/Konashi/Category/CoreBluetooth/CBPeripheral+Konashi.m:33:44: Incompatible block pointer types sending 'void (^)(CBService *__strong)' to parameter of type 'void (^)(__strong id, NSUInteger, BOOL *)'

2015-10-15 00 49 11

Expected results

build success

Actual results

fail

Approximate probability

100%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.