The embedded package registry

Drivers and algorithms,
ready to pin.

Small, tested C units for embedded systems. Each package has a contract, a README, host tests, a source commit, and a SHA-256.

loom add median
57packages
23operators
34drivers
C99no runtime

All packages

clamp v0.1.0 operator

Limit sample-to-sample change.

filteradc
no allocno floatnon-blocking

ADC step noise · sensor dropout

median v0.1.0 operator

Remove impulses with an N-sample median.

filteradc
no allocno floatnon-blocking

PIR impulses · ADC spikes

moving-average v0.1.0 operator

Smooth with an N-sample mean.

filteradc
no allocno floatnon-blocking

battery voltage · temperature

ema v0.1.0 operator

First-order lag with a power-of-two shift.

filteradc
no allocno floatnon-blocking

battery gauge · control loop

trimmed-mean v0.1.0 operator

Average a batch after dropping the minimum and maximum.

filteradc
no allocno floatnon-blocking

PIR 6-sample batch · ADC burst with spikes

debounce v0.1.0 operator

Delay a binary change until the input is stable.

filterkey
no allocno floatnon-blocking

key · limit switch

hysteresis v0.1.0 operator

Keep a binary state across a threshold band.

controlbattery
no allocno floatnon-blocking

battery threshold · thermostat

key-fsm v0.1.0 operator

Turn a key level into short and long events.

controlkey
no allocno floatnon-blocking

power button · single-key menu

crc16 v0.1.0 operator

CRC-16/CCITT-FALSE for frames and images.

integrityprotocol
no allocno floatnon-blocking

config block · firmware image

ring-buffer v0.1.0 operator

Fixed-size byte ring buffer.

bufferuart
no allocno floatnon-blocking

UART receive · IR edge queue

mean v0.1.0 operator

Arithmetic mean of a batch.

filteradc
no allocno floatnon-blocking

short ADC burst · calibration average

clamp-average v0.1.0 operator

Limit each step, then smooth with a moving average.

filteradc
no allocno floatnon-blocking

noisy actuator feedback · battery with spikes

weighted-average v0.1.0 operator

Weighted mean of a batch.

filteradc
no allocno floatnon-blocking

trusted recent samples · sensor fusion

clamp-debounce v0.1.0 operator

Limit each step, then accept after N stable samples.

filteradc
no allocno floatnon-blocking

slow analog channel · spike and drift rejection

ir-nec-decode v0.1.0 operator

Decode NEC falling-edge intervals.

irprotocol
no allocno floatnon-blocking

TV remote · IR keypad

i2c-master v0.1.0 driver

Blocking I2C master with a port and fake bus.

i2cbus
no allocno floatblocking

sensor · EEPROM

uart v0.1.0 driver

Blocking UART core with a port and timeout.

uartserial
no allocno floatblocking

AT command module · debug console

ws2812 v0.1.0 driver

Encode RGB pixels into WS2812 GRB bytes.

ledprotocol
no allocno floatblocking

status LED · LED strip

ir-capture v0.1.0 driver

Collect falling-edge intervals for an IR receiver.

ircapture
no allocno floatnon-blocking

NEC remote · IR keypad

pid v0.1.0 operator

Integer PID with integral clamping and output limits.

controlmotor
no allocno floatnon-blocking

motor speed · heater control

gamma-lut v0.1.0 operator

Map an input through a lookup table with interpolation.

leddisplay
no allocno floatnon-blocking

LED dimming · sensor linearization

crc32 v0.1.0 operator

CRC-32/ISO-HDLC for images and frames.

integrityprotocol
no allocno floatnon-blocking

firmware image · config block

fixed-sqrt v0.1.0 operator

Q16.16 integer square root.

mathfixed-point
no allocno floatnon-blocking

RMS · magnitude

adc-sampler v0.1.0 driver

Average N ADC reads on a channel.

adcsensor
no allocno floatblocking

battery voltage · temperature

soft-pwm v0.1.0 driver

Software PWM on a single pin.

pwmled
no allocno floatnon-blocking

status LED · heater

ds18b20 v0.1.0 driver

READ DS18B20 temperature over 1-Wire.

sensoronewire
no allocno floatblocking

board temperature · enclosure probe

biquad v0.1.0 operator

Q15 direct-form I biquad section.

dspfilter
no allocno floatnon-blocking

audio filter · sensor smoothing

ssd1306 v0.1.0 driver

Minimal SSD1306 128x64 I2C driver.

displayoled
no allocno floatblocking

status display · menu

dht v0.1.0 driver

DHT11 and DHT22 frame decoders.

sensorhumiditytemperature
no allocno floatnon-blocking

room climate · greenhouse

rotary-encoder v0.1.0 driver

Quadrature decoder for a mechanical rotary encoder.

inputquadratureknob
no allocno floatnon-blocking

menu knob · setpoint

fir v0.1.0 operator

Q15 finite-impulse-response filter.

dspfilter
no allocno floatnon-blocking

audio filter · sensor smoothing

at24cxx v0.1.0 driver

AT24Cxx I2C EEPROM driver.

storageeepromi2c
no allocno floatblocking

calibration storage · serial numbers

ds3231 v0.1.0 driver

DS3231 I2C real-time clock.

timertci2c
no allocno floatblocking

data logger timestamps · wall clock

max7219 v0.1.0 driver

MAX7219/MAX7221 SPI LED driver.

displayledspi
no allocno floatblocking

seven-segment display · LED matrix

pca9685 v0.1.0 driver

PCA9685 16-channel I2C PWM driver.

pwmservoi2c
no allocno floatblocking

servo bank · LED dimming

mpu6050 v0.1.0 driver

MPU-6050 six-axis IMU driver.

imumotioni2c
no allocno floatblocking

tilt sensing · motion detection

sht3x v0.1.0 driver

SHT30/SHT31/SHT35 temperature and humidity sensor.

sensorhumiditytemperaturei2c
no allocno floatblocking

room climate · greenhouse

aht20 v0.1.0 driver

AHT20 temperature and humidity sensor.

sensorhumiditytemperaturei2c
no allocno floatblocking

room climate · enclosure monitoring

mcp2515 v0.1.0 driver

MCP2515 CAN controller over SPI.

canbusspi
no allocno floatblocking

vehicle CAN node · industrial bus

stepper v0.1.0 driver

Step/direction stepper driver for A4988 and DRV8825.

motionsteppergpio
no allocno floatblocking

linear stage · pump actuator

hx711 v0.1.0 driver

HX711 24-bit load-cell amplifier.

sensorload-cellgpio
no allocno floatblocking

platform scale · force sensor

max31855 v0.1.0 driver

MAX31855 thermocouple amplifier.

sensortemperaturespi
no allocno floatblocking

reflow oven · kiln monitor

bme280 v0.1.0 driver

BME280 temperature, pressure, and humidity sensor.

sensorpressurehumiditytemperaturei2c
no allocno floatblocking

weather station · altitude

adxl345 v0.1.0 driver

ADXL345 three-axis accelerometer.

sensormotioni2c
no allocno floatblocking

tilt sensing · vibration logging

mcp23017 v0.1.0 driver

MCP23017 16-bit I2C GPIO expander.

gpioexpanderi2c
no allocno floatblocking

buttons and relays · keypad

ads1115 v0.1.0 driver

ADS1115 16-bit I2C analog-to-digital converter.

adcsensori2c
no allocno floatblocking

precision sensor · battery measurement

sh1106 v0.1.0 driver

Minimal SH1106 128x64 I2C OLED driver.

displayoledi2c
no allocno floatblocking

1.3-inch status display · handheld menu

mcp4725 v0.1.0 driver

MCP4725 12-bit I2C digital-to-analog converter.

dacanalogi2c
no allocno floatblocking

analog setpoint · sensor calibration

pcf8574 v0.1.0 driver

PCF8574 8-bit I2C GPIO expander.

gpioexpanderi2c
no allocno floatblocking

buttons and relays · status LEDs

hc-sr04 v0.1.0 driver

HC-SR04 ultrasonic distance sensor.

sensordistanceultrasonic
no allocno floatblocking

obstacle sensing · tank level

ina219 v0.1.0 driver

INA219 high-side current and power monitor.

sensorcurrentpoweri2c
no allocno floatblocking

battery current · load monitor

mcp9808 v0.1.0 driver

MCP9808 high-accuracy I2C temperature sensor.

sensortemperaturei2c
no allocno floatblocking

board temperature · enclosure logging

nrf24l01 v0.1.0 driver

nRF24L01+ 2.4 GHz SPI transceiver core.

radiowirelessspi
no allocno floatblocking

short-range sensor link · remote control

hd44780 v0.1.0 driver

HD44780-compatible character LCD, 4-bit parallel interface.

displaylcdgpio
no allocno floatblocking

status display · parameter editor

mfrc522 v0.1.0 driver

MFRC522 13.56 MHz RFID reader over SPI.

rfidnfcspi
no allocno floatblocking

UID reader · access control

modbus-rtu v0.1.0 operator

Modbus RTU frame builder and parser.

protocolindustrialuart
no allocno floatnon-blocking

RS-485 sensor bus · drive control

pir v0.1.0 operator

PIR motion detector signal chain for sampled pyroelectric data.

motionpirfilter
no allocno floatnon-blocking

raw PIR front end · battery motion sensor