Created
March 26, 2020 15:19
-
-
Save adrianlzt/6e927eb83b405f09d89624150e1d4d35 to your computer and use it in GitHub Desktop.
Devicetree overlay for HX711 in Raspberry Pi Zero
This file contains hidden or 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