commit | fff26441897cf3a18f4a94a43485f12033c60410 | [log] [tgz] |
---|---|---|
author | Martí Bolívar <marti.bolivar@nordicsemi.no> | Mon Apr 26 13:57:47 2021 -0700 |
committer | Carles Cufí <carles.cufi@nordicsemi.no> | Wed May 05 20:46:43 2021 +0200 |
tree | 266e0852705bf75770557408beca66e0675c144d | |
parent | 7e1877e2b23466ca63da48babcbefcf0ecf23b71 [diff] |
samples: button: devicetree cleanups Use a gpio_dt_spec, dropping device_get_binding. This in turn lets us write everything in a single main() without sacrificing readability since the LED is optional. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>