Returns the type of device for which the code is being compiled
Example:
#include <Arduino.h>
#include <ArduinoWhoami.h>
void setup() {
Serial.begin(9600);
// Detect the device type and print
if (ArduinoWhoami::getDeviceType()==NodeMCU__){
Serial.print("Hi! I am a little NODEMCUUUU :)");
}
}
void loop() {
}