Skip to content

add functions to read out the flash config and flash id #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 30, 2015
Merged

add functions to read out the flash config and flash id #145

merged 6 commits into from
Apr 30, 2015

Conversation

Links2004
Copy link
Collaborator

Serial.print(F("Flash Chip Id: "));
Serial.println(ESP.getFlashChipId(), HEX);

Serial.print(F("Flash Chip Size: "));
Serial.println(ESP.getFlashChipSize());

Serial.print(F("Flash Chip Speed: "));
Serial.println(ESP.getFlashChipSpeed());

Serial.print(F("Flash Chip Mode: 0x"));
Serial.println(ESP.getFlashChipMode(), HEX);

Serial.print(F("Flash Chip Size: "));
Serial.println(ESP.getFlashChipSize());

Serial.print(F("Flash Chip Speed: "));
Serial.println(ESP.getFlashChipSpeed());

Serial.print(F("Flash Chip Mode: 0x"));
Serial.println(ESP.getFlashChipMode(), HEX);
@igrr
Copy link
Member

igrr commented Apr 30, 2015

Ha, you beat me to it, I was just going to add the same 👍

@igrr igrr merged commit c209af0 into esp8266:esp8266 Apr 30, 2015
@igrr
Copy link
Member

igrr commented Apr 30, 2015

I've removed the size/frequency units from Arduino.h — I have a feeling some people might actually use kB and kHz as variable names in their sketches.
Will add that back as user-defined literals once I switch the compiler to c++14 mode.

@Links2004
Copy link
Collaborator Author

i don't known the "user-defined literal" feature nice thing.
it seams part of the c++11, c++14 only at some more predefined things.

its working well with the current compiler settings.

igrr pushed a commit that referenced this pull request Oct 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants