Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS * BLE簡単プロトタイピング

iOS * BLE簡単プロトタイピング

iOS * BLE簡単プロトタイピング

takahiroyamamoto

April 02, 2015
Tweet

Other Decks in Technology

Transcript

  1.  NCFE J1IPOF IUUQKBXJLJQFEJBPSHXJLJ*1IPOF ("55 "55 -$"1 ("1 #-&ϓϩτίϧελοΫ MJOLMBZFS

    -&QIZTJDBM Bluetooth SIG ӳޠ Q͘Β͍ͷࢿྉ IUUQKBXJLJQFEJBPSHXJLJ.CFE
  2. ίʔυʢJ04ଆʣ  @IBAction func prev(sender:AnyObject) //લਐϘλϯ { var communicator :

    BLECommunicator = BLECommunicator.sharedInstance communicator.write("a") } @IBAction func back(sender:AnyObject) //ޙୀϘλϯ { var communicator : BLECommunicator = BLECommunicator.sharedInstance communicator.write("z") } @IBAction func rotate(sender:AnyObject) //ճసϘλϯ { var communicator : BLECommunicator = BLECommunicator.sharedInstance communicator.write("r") } @IBAction func stop(sender:AnyObject) //ఀࢭϘλϯ { var communicator : BLECommunicator = BLECommunicator.sharedInstance communicator.write("o") }
  3. if(SciByteRx(&data) > 0){ { if(data == ‘a’)//લਐॲཧ { //લਐ }

    else if(data == ‘z’)//ޙୀ { //ޙୀ } else if(data == ‘r’)//ճస { //ճస } else { //ఀࢭ } } } ίʔυ σόΠεଆ