Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save geertu/2ef351008bd614e28b1be20fa1c7361d to your computer and use it in GitHub Desktop.
Save geertu/2ef351008bd614e28b1be20fa1c7361d to your computer and use it in GitHub Desktop.
Device Tree Overlay for Adafruit 0.54" Quad Alphanumeric FeatherWing Display Red (Adafruit Product ID 3130)
// SPDX-License-Identifier: GPL-2.0-only
//
// Device Tree Overlay for Adafruit 0.54" Quad Alphanumeric FeatherWing Display
// Red (Adafruit Product ID 3130)
//
// Copyright (C) 2021 Glider bv
/dts-v1/;
/plugin/;
#include <dt-bindings/leds/common.h>
// cpp -nostdinc -I /path/to/linux/include -undef -x assembler-with-cpp adafruit-featherwing-quad-alphanumeric-red.dtso > adafruit-featherwing-quad-alphanumeric-red.dtso.i
// dtc -o adafruit-featherwing-quad-alphanumeric-red.dtbo adafruit-featherwing-quad-alphanumeric-red.dtso.i
&i2c0 {
#address-cells = <1>;
#size-cells = <0>;
display@70 {
compatible = "adafruit,3130", "holtek,ht16k33";
reg = <0x70>;
default-brightness-level = <4>;
color = <LED_COLOR_ID_RED>;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment