Skip to content

Returns the type of device for which the code is being compiled

Notifications You must be signed in to change notification settings

Eitol/ArduinoWhoami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Returns the type of device for which the code is being compiled

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published