DEPRECATED! Please use Adafruit Blinka instead (was: Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.)
MIT License
402
stars
312
forks
source link
Change platform detect to use /proc/cpuinfo to detect board type and add new board to detect. #92
This PR changes how boards are detected by using "/proc/cpuinfo" instead of reading the platform. This change checks for the processor type and determines the board based on that. This should allow for more boards to be added and detected for use with adafruit-blinka.
Changes:
added 'import os'
removed all extra beaglebone elif's as they aren't needed anymore
added GIANT_BOARD to the list of boards.
limitations:
Boards with the same processor will be indistinguishable
@Groguard ooh thanks - we're actually about to pull this out and into a separate repo just for platform detection. @brennen is doing that now, and may ask you to add your code there!
This PR changes how boards are detected by using "/proc/cpuinfo" instead of reading the platform. This change checks for the processor type and determines the board based on that. This should allow for more boards to be added and detected for use with adafruit-blinka.
Changes:
limitations:
Test code: