MCPcopy Create free account
hub / github.com/SmingHub/Sming / init

Function init

samples/Basic_ProgMem/app/application.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void init()
112{
113 Serial.begin(SERIAL_BAUD_RATE); // 115200 or 9600 by default
114
115 testPgm();
116 testProgmem(Serial);
117
118 Serial.println("> ESP8266EX Memory Layout:");
119 Serial.println("> 0x3FFE8000 ~ 0x3FFFBFFF - User data RAM, 80kb. Available to applications.");
120 Serial.println("> 0x40200000 ~ ... - SPI Flash.");
121
122 Serial << "> demoRam array address: 0x" << String(uintptr_t(demoRam), HEX) << " is in the RAM" << endl;
123 Serial << "> demoPgm array address: 0x" << String(uintptr_t(demoPgm), HEX) << " is in the Flash" << endl;
124}

Callers

nothing calls this directly

Calls 5

testPgmFunction · 0.85
testProgmemFunction · 0.85
printlnMethod · 0.80
StringClass · 0.50
beginMethod · 0.45

Tested by

no test coverage detected