# `Circuits.GPIO.CDev`
[🔗](https://github.com/elixir-circuits/circuits_gpio/blob/v2.1.3/lib/gpio/cdev.ex#L6)

Circuits.GPIO backend that uses the Linux CDev for controlling GPIOs

This is the default on Linux and Nerves. Nothing needs to be done to
use it on those platforms. If you need to be explicit, here's the
configuration to force it:

```elixir
config :circuits_gpio, default_backend: Circuits.GPIO.CDev
```

It takes one option, `:test`, that can be set to `true` to compile
the stub implementation that can be useful for testing.

```elixir
config :circuits_gpio, default_backend: {Circuits.GPIO.CDev, test: true}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
