Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 377 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 377 Bytes

ArduinoWhoami

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() {
    
}