Add platform identifier
Some features are not useful on RPi1's and Pi Zero's. It would be helpful to have an API to know what platform type an app is running on so less resource intensive options can be chosen. Examples would be the animation on PiNet and colored icons for the launcher.
The API should be piboxGetPlatform() which returns numeric IDs of PIBOX_RPI1, PIBOX_RPI2, PIBOX_RPI3, PIBOX_PIZERO, PIBOX_PIZEROW. The actual model can be identified using the technique in functions:optimizeBoard().
revision=$(cat /proc/cpuinfo | grep Revision | cut -f2 -d":" | tr -d '[:space:]')
The values to map to board types are in the comment header for optimizeBoard().References:
- Description updated (diff)
- Status changed from New to Closed
- % Done changed from 0 to 100
Integrated piboxGetPlatform to libpibox and tested with launcher on RPi3. Feature works well enough for this issue. If problems are found later on other hardware then new issues will be opened.