Skip to content

Commit 974e54d

Browse files
pojirofhunleth
authored andcommitted
Modify README.md for GPIO Demo
1 parent 9ac3969 commit 974e54d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ config :circuits_sim,
4242
{CircuitsSim.Device.ADS7138, bus_name: "i2c-1", address: 0x10},
4343
{CircuitsSim.Device.MCP23008, bus_name: "i2c-1", address: 0x20},
4444
{CircuitsSim.Device.MCP23008, bus_name: "i2c-1", address: 0x21},
45-
{CircuitsSim.Device.TM1620, bus_name: "spidev0.0", render: :binary_clock}
45+
{CircuitsSim.Device.TM1620, bus_name: "spidev0.0", render: :binary_clock},
46+
{CircuitsSim.Device.GPIOLED, gpio_spec: 10},
47+
{CircuitsSim.Device.GPIOButton, gpio_spec: 11}
4648
]
4749
```
4850

49-
This shows two simulated I2C buses, `"i2c-0"` and `"i2c-1"`, and one SPI bus.
51+
This shows two simulated I2C buses, `"i2c-0"` and `"i2c-1"`, one SPI bus,
52+
and two GPIO.
5053
The `"i2c-0"` bus has two devices, an MCP23008 GPIO expander and an AT24C02
5154
EEPROM.
5255

0 commit comments

Comments
 (0)