backupbrain / arduinoboardmanager Goto Github PK
View Code? Open in Web Editor NEWArduino library to determine the Arduino models and features as well as the SDK version.
Arduino library to determine the Arduino models and features as well as the SDK version.
SANGUINO and MICRODUINO both use Atmega_644PA although they have completely different pin mappings.
PD6 is PIN 14 on sanguino, while on Microduino it is PIN 8
First at all thanks for your contribution to the community.
Well, it seams to me that you made a wrong copy and past in this line. But even writing the correct cpu value I still having a problem detecting my arduino due. Fortunally, I fixed it changing this -> __AVR_ATSAMD21G18A__
for this -> __SAM3X8E__
ArduinoBoardManager/ArduinoBoardManager.h
Line 112 in 2b7be8a
Hi,
I tried this library on a Teensy 3.2 board, it doesn't seem to be working properly, I get the following output:
Board used: Unknown
SDK Version is: 10611
This Unknown is an 0-bit, 96Mhz processor with 0k of SRAM and 0k of flash.
... the code which generates the above is listed here.
unsigned long M = 1000000;
unsigned int k = 1000;
Serial.begin(9600);
while(!Serial); // on Leonardo/Micro, wait for serial
// The Arduino board name
Serial.print("Board used: ");
Serial.println(arduino.BOARD_NAME);
// the Arduino SDK version
Serial.print("SDK Version is: ");
Serial.println(ArduinoBoardManager::SDK_VERSION);
// The processor features (RAM, speed, etc)
Serial.print("This "); Serial.print(arduino.BOARD_NAME);
Serial.print(" is an "); Serial.print(ArduinoBoardManager::NUM_BITS);
Serial.print("-bit, "); Serial.print(ArduinoBoardManager::MAX_MHZ/M);
Serial.print("Mhz processor with "); Serial.print(ArduinoBoardManager::SRAM_SIZE/k);
Serial.print("k of SRAM and "); Serial.print(ArduinoBoardManager::FLASH_SIZE/k);
Serial.println("k of flash.");
Serial.println();
Hi,
thanks for sharing the library. However, I get error trying to compile the example.
Arduino: 1.6.12 (Mac OS X), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from /[...]/ArduinoBoardManager.h:140:31: error: '__AVR_ATmega1280__' was not declared in this scope
static const uint16_t CPU = __AVR_ATmega1280__;
^exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
I get the error with my Arduino Mega 2560 as well as Controllino (which is based on Arduino Mega). Any thoughts?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.