Skip to content

Instantly share code, notes, and snippets.

View samsp-msft's full-sized avatar

Sam Spencer samsp-msft

  • Microsoft
  • Redmond, WA
View GitHub Profile
@samsp-msft
samsp-msft / Beomote_beomote.cpp
Created February 11, 2026 04:44
Arduino code to convert B&O IR pulses & IC2 into serial comms
/*********************************************************************************
B&O uses a PWM system, with 200ms pulses with specific sized gaps between them.
The gap size determines the data payload:
BEO_ZERO 3125
BEO_SAME 6250 - Repeat of the last Bit type
BEO_ONE 9375
BEO_STOP 12500 - Marks the start of a message
BEO_START 15625 - Marks the end of a message
Beo4 commmands are of the form:
using Microsoft.Extensions.Options;
using System.Collections.ObjectModel;
using System.Diagnostics.Tracing;
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Text.Json.Serialization;
public class EventEnumerator : EventListener
{