Skip to content

Instantly share code, notes, and snippets.

@GOROman
Created January 25, 2015 06:53
Show Gist options
  • Save GOROman/4473018728ba04b7d741 to your computer and use it in GitHub Desktop.
Save GOROman/4473018728ba04b7d741 to your computer and use it in GitHub Desktop.
GoProをC#からWifi経由で制御するサンプルプログラム
// https://github.com/r1pper/GoPro.Hero を使用
using System;
using GoPro.Hero;
using GoPro.Hero.Hero3;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// Wifi接続時のGoProのIPアドレス
string IP = "10.5.5.9";
// GoProへ接続
var camera = GoPro.Hero.Camera.Create<Hero3Camera>(IP);
// 写真撮影モードへ設定
camera.Mode(Mode.Photo);
// シャッター
camera.OpenShutter();
camera.CloseShutter();
// カメラ設定を得る
var setting = camera.Settings();
// カメラ情報を得る
var info = camera.Information();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment