Skip to content

Instantly share code, notes, and snippets.

@adrianlzt
Created March 26, 2020 15:19
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save adrianlzt/6e927eb83b405f09d89624150e1d4d35 to your computer and use it in GitHub Desktop.
Devicetree overlay for HX711 in Raspberry Pi Zero
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target-path = "/";
__overlay__ {
hx711: hx711 {
compatible = "avia,hx711";
sck-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
dout-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
avdd-supply = <&vdd_3v3_reg>;
status = "okay";
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment