View ListBlueToothDevices
using System; | |
using InTheHand.Net.Sockets; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
var bluetoothClient = new BluetoothClient(); |
View ArduinoAccelerometerLightStrip
#include <Wire.h> | |
#include "MMA7660.h" | |
MMA7660 acc; | |
int brightness = 0; // how bright the LED is | |
int ledStrip = 6; // the pin that the LED is attached to | |
int accelerometer = 13; // the pin that the accelerometer sensor is attached | |
int fadeAmount = 5; // how many points to fade the LED by | |
void setup() | |
{ |
View AccelerometerSample01
#include <pebble.h> | |
#define MATH_PI 3.141592653589793238462 | |
#define NUM_DISCS 20 | |
#define DISC_DENSITY 0.25 | |
#define ACCEL_RATIO 0.05 | |
#define ACCEL_STEP_MS 50 | |
Window *window; | |
TextLayer *text_layer; | |
static AppTimer *timer; |
View ElBrunoLync2Pebble
static void Main() | |
{ | |
WriteAppTitle(); | |
if (ConnectToPebble()) return; | |
var client = LyncClient.GetClient(); | |
client.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded; | |
Console.WriteLine("Press Enter to exit."); | |
Console.ReadLine(); | |
} |
View ElBrunoLeapV2Controller
using System; | |
using System.Threading.Tasks; | |
using Leap; | |
namespace ElBruno.LeapV2NewFeatures | |
{ | |
public class MotionListener : Listener | |
{ | |
public event Action<bool, bool> OnLeftOrRightHand; | |
public event Action<float, float> OnPitchAndGrab; |
View KinectSdkV2FrameLifeCycle
static void _bodyFrameReader_FrameArrived(object sender, BodyFrameArrivedEventArgs e) | |
{ | |
var frame = e.FrameReference.AcquireFrame(); | |
if (null == frame) return; | |
using (frame) | |
{ | |
frame.GetAndRefreshBodyData(_bodies); | |
foreach (var body in _bodies) |
View ElBrunoWpfViewXboxOneController
using System; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Windows; | |
using System.Windows.Threading; | |
using SharpDX.XInput; | |
namespace ElBruno.GameController | |
{ | |
public partial class MainWindow : INotifyPropertyChanged |
OlderNewer