In addition to Tuesday’s blog post about RPI_INFO, Alex has also discovered a new function call inside the RPi.GPIO Python library: getmode(). This is a companion to setmode() and reads back what mode the library is set to – BCM, BOARD or not defined. Read how to use it and see example scripts here.