adjusted old code to new spi and gpi

minor fixes
This commit is contained in:
2020-06-16 21:50:13 +02:00
parent ccfa7d83d3
commit 6dfce7803a
3 changed files with 61 additions and 51 deletions

View File

@@ -369,12 +369,12 @@ private:
/** perform hard reset */
void reset() {
debugMod(NAME, "reset");
//MyGPIO::set(PIN_RESET);
//usleep(20*1000);
MyGPIO::clear(PIN_RESET); // perform reset
usleep(20*1000);
MyGPIO::set(PIN_RESET);
usleep(20*1000);
usleep(50*1000);
MyGPIO::clear(PIN_RESET); // perform reset
usleep(50*1000);
MyGPIO::set(PIN_RESET);
usleep(50*1000);
debugMod(NAME, "reset done");
}