You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
/**
|
|
******************************************************************************
|
|
@file Loader.h
|
|
@author Waveshare Team
|
|
@version V2.0.0
|
|
@date 10-August-2018
|
|
@brief The main file.
|
|
This file provides firmware functions:
|
|
+ Initialization of Serial Port, SPI pins and server
|
|
+ Main loop
|
|
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "srvr.h" // Server functions
|
|
|
|
/* Entry point ----------------------------------------------------------------*/
|
|
void setup()
|
|
{
|
|
// Serial port initialization
|
|
Serial.begin(115200);
|
|
delay(10);
|
|
|
|
// Bluetooth initialization
|
|
Srvr__btSetup();
|
|
|
|
// SPI initialization
|
|
EPD_initSPI();
|
|
|
|
// Initialization is complete
|
|
Serial.print("\r\nOk!\r\n");
|
|
}
|
|
|
|
/* The main loop -------------------------------------------------------------*/
|
|
void loop()
|
|
{
|
|
Srvr__loop();
|
|
}
|