Nikita Ivanykov
/
LAB_DISPLAY
7
main.cpp
- Committer:
- codebreaker7
- Date:
- 2017-10-26
- Revision:
- 0:02841331478b
- Child:
- 1:cdeae0693b01
File content as of revision 0:02841331478b:
#include "mbed.h" #include "ILI9341_Defines.h" SPI spi_dev(PB_15, PB_14, PB_13); DigitalOut cs(PC_4); DigitalOut ao(PB_3); void writecommand(uint8_t command) { cs = 0; ao = 0; spi_dev.write(command); cs = 1; } void writedata(uint8_t data) { cs = 0; ao = 1; spi_dev.write(data); cs = 1; } int main() { #include "ILI9341_Init.h" while(1) { } }