c#

A 6-post collection

a year ago

That's not a type, that's a named instance.

c#   dependency-injection   ninject  

I was recently shown some code where the developer had an abstract class where all of the functionality existed in the base class and was controlled strictly by the constructor arguments, something li…

a year ago

Using I2C on the Raspberry Pi with C#

c#   i2c   mono   linux   raspberry-pi  

There are three breakouts that make up the sensors for Mr. Gibbs, the GPS, the Accelerator/Gyro, and the Compass. While the GPS connects using UART (serial port), the other two connect using i2c to t…

a year ago

Connecting to a Bluetooth Serial Port Profile with BlueZ and Mono

dbus   bluez   bluetooth   linux   c#   rfcomm   profile  

Once you have paired your bluetooth device with BlueZ, the next step depends on what type of device it is. One of the most common bluetooth profiles is the Serial port profile. I could write quite a…

a year ago

Bluetooth Pairing with .Net/C# BlueZ and dbus

bluetooth   bluez   mono   c#   .net   pebble   linux  

At this point in the project I had a working dbus implementation to use, and it was time to begin actually implement some bluetooth functionality. The first thing I did was to attempt to convert the…

a year ago

Get on dbus (with .Net)

c#   mono   dbus   bluez   bluetooth   linux  

If you read my post about getting .Net working with BlueZ 4, you, like me, were probably left feeling a little... dirty. Interop is never fun in .Net, even less so when it involves patching and build…

a year ago

PebbleSharp, Linux, and BlueZ 4

pebble   raspbian   bluez   bluetooth   c#   linux   mono   pebblesharp  

After my initial pilot of a Javascript/phone application written for the pebble to see how the idea worked, I decided to build a solution which would allow me to keep my (relatively) expensive phone o…