├── .gitattributes ├── .gitignore └── ESP32_Version └── ESP32_Version.ino /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | 42 | # Directories potentially created on remote AFP share 43 | .AppleDB 44 | .AppleDesktop 45 | Network Trash Folder 46 | Temporary Items 47 | .apdisk 48 | -------------------------------------------------------------------------------- /ESP32_Version/ESP32_Version.ino: -------------------------------------------------------------------------------- 1 | /* 2 | This sketch reads the version number of hte ESP32 chip 3 | 4 | 2017-07-17 Andreas Spiess 5 | 6 | */ 7 | 8 | #include "soc/efuse_reg.h" 9 | 10 | int getChipRevision() 11 | { 12 | return (REG_READ(EFUSE_BLK0_RDATA3_REG) >> (EFUSE_RD_CHIP_VER_RESERVE_S)&&EFUSE_RD_CHIP_VER_RESERVE_V) ; 13 | } 14 | 15 | void setup() { 16 | Serial.begin(115200); 17 | delay(200); 18 | Serial.print("REG_READ(EFUSE_BLK0_RDATA3_REG) "); 19 | Serial.println(REG_READ(EFUSE_BLK0_RDATA3_REG), BIN); 20 | 21 | Serial.print("EFUSE_RD_CHIP_VER_RESERVE_S "); 22 | Serial.println(EFUSE_RD_CHIP_VER_RESERVE_S, BIN); 23 | 24 | Serial.print("EFUSE_RD_CHIP_VER_RESERVE_V "); 25 | Serial.println(EFUSE_RD_CHIP_VER_RESERVE_V, BIN); 26 | 27 | Serial.println(); 28 | 29 | Serial.print("Chip Revision (official version): "); 30 | Serial.println(getChipRevision()); 31 | 32 | Serial.print("Chip Revision from shift Opration "); 33 | Serial.println(REG_READ(EFUSE_BLK0_RDATA3_REG) >> 15, BIN); 34 | } 35 | 36 | // the loop function runs over and over again forever 37 | void loop() { 38 | } 39 | --------------------------------------------------------------------------------