Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, NXP and Raspberry Pi logos.
Embedded Linux

Scan an I2C Bus for Devices With i2cdetect

Enable /dev/i2c-N, list adapters with i2cdetect -l, scan a bus with i2cdetect -y and read the address grid, including reserved ranges and missing devices.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Rust and Linux logos.
Networking

Resolve Hostnames in C with getaddrinfo

Resolve hostnames in C with getaddrinfo, walk the result list, connect to the first address that works, and free it with freeaddrinfo on Linux.

6 min read