User Tools

Site Tools


pi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
pi [2024/04/08 19:56] adampi [2026/08/03 21:06] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-  * why are there multiple 5v and multiple 3v pins? consensus online is either "the 5v pins are to power 5v components" or "in case you need them", so apparently no one else knows, either. 
-  * no you can't power a raspberry pi from its 5v rail. 
-  * all GPIOs use 3.3v.  
  
-====== gpio ====== 
- 
-https://raspberrypi.stackexchange.com/questions/79494/continuesly-monitor-gpio-input-change-events-in-bash 
-tl;dr: 
-write the pin number to "export". write "in" to direction. cat that pin's value. boom. no need to debase ourselves with python. 
- 
-  echo 26 > /sys/class/gpio/export 
-  echo in > /sys/class/gpio/gpio26/direction 
-  cat /sys/class/gpio/gpio26/value 
pi.1712606216.txt.gz · Last modified: by adam