Прошло 2 года.
This commit is contained in:
30
lib/epdiy/examples/vcom-kickback/main/main.ino
Normal file
30
lib/epdiy/examples/vcom-kickback/main/main.ino
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* This is the Arduino wrapper for the "Demo" example.
|
||||
* Please go to the main.c for the main example file.
|
||||
*
|
||||
* This example was developed for the ESP IoT Development Framework (IDF).
|
||||
* You can still use this code in the Arduino IDE, but it may not look
|
||||
* and feel like a classic Arduino sketch.
|
||||
* If you are looking for an example with Arduino look-and-feel,
|
||||
* please check the other examples.
|
||||
*/
|
||||
|
||||
// Important: These are C functions, so they must be declared with C linkage!
|
||||
extern "C" {
|
||||
void idf_setup();
|
||||
void idf_loop();
|
||||
}
|
||||
|
||||
void setup() {
|
||||
if (psramInit()) {
|
||||
Serial.println("\nThe PSRAM is correctly initialized");
|
||||
} else {
|
||||
Serial.println("\nPSRAM does not work");
|
||||
}
|
||||
|
||||
idf_setup();
|
||||
}
|
||||
|
||||
void loop() {
|
||||
idf_loop();
|
||||
}
|
||||
Reference in New Issue
Block a user