Attached is a project that demonstrates the use of the ArduinoBoardManager code module (included in the zip file).
The ArduinoBoardManager wraps this GitHub project: https://github.com/backupbrain/ArduinoBoardManager. With this module you can retrieve some info on your board such as board type, cpu type, speed, various memory sizes and some miscellaneous features.
Limits: the board name and a lot of the other info is retrieved based on the cpu name; this can cause unexpected behavior. For example, the real Uno has a 328p whereas the real Nano has a 328. My Nano clone has the 328p so this library reports it as an Uno. Also, the library is limited in what boards it reports. For example, the NodeMCUs are reported as "Board Unknown".
In order for the code module to work, you need to download the .h and .cpp files from the GitHub link. Place them inside Arduino/libraries/ArduinoManager.
The ArduinoBoardManager wraps this GitHub project: https://github.com/backupbrain/ArduinoBoardManager. With this module you can retrieve some info on your board such as board type, cpu type, speed, various memory sizes and some miscellaneous features.
Limits: the board name and a lot of the other info is retrieved based on the cpu name; this can cause unexpected behavior. For example, the real Uno has a 328p whereas the real Nano has a 328. My Nano clone has the 328p so this library reports it as an Uno. Also, the library is limited in what boards it reports. For example, the NodeMCUs are reported as "Board Unknown".
In order for the code module to work, you need to download the .h and .cpp files from the GitHub link. Place them inside Arduino/libraries/ArduinoManager.
Attachments
Last edited: