Created
March 26, 2020 15:19
Star
You must be signed in to star a gist
Devicetree overlay for HX711 in Raspberry Pi Zero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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