Is there any command for listing all devices attached to RPI(light bulbs, buzzers, USB-s, etc.)?
If there is no that command, how can I check it?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.
Sign up to join this communityIs there any command for listing all devices attached to RPI(light bulbs, buzzers, USB-s, etc.)?
If there is no that command, how can I check it?
For USB devices you can use lsusb. It should be installed by default in your Pi - if not do:
sudo apt-get update
sudo apt-get install usbutils
later you can run the command lsusb and you should see all the devices connected via USB
lshw
and lspci
and i2cdetect
commands for detecting devices on other interfaces.
– Fred
Oct 4 '19 at 19:42
No, there is no such command.
You will have to look at the Pi to see what is connected.