2016-12-06 19:51:07 +01:00
|
|
|
#include<avr/io.h>
|
|
|
|
#include<util/delay.h>
|
|
|
|
|
|
|
|
#include "spi.h"
|
|
|
|
#include "st7735.h"
|
|
|
|
|
2016-12-07 00:26:43 +01:00
|
|
|
#include "logo.h"
|
|
|
|
#include "logo_bw.h"
|
|
|
|
|
|
|
|
int main(void) {
|
2016-12-06 19:51:07 +01:00
|
|
|
spi_init();
|
|
|
|
st7735_init();
|
|
|
|
|
2016-12-07 00:26:43 +01:00
|
|
|
st7735_set_orientation(ST7735_LANDSCAPE);
|
|
|
|
st7735_fill_rect(0, 0, 160, 128, ST7735_COLOR_BLACK);
|
2016-12-06 19:51:07 +01:00
|
|
|
|
2016-12-07 00:26:43 +01:00
|
|
|
st7735_draw_mono_bitmap(0, 0, &logo_bw, ST7735_COLOR_WHITE, ST7735_COLOR_BLACK);
|
2016-12-06 19:51:07 +01:00
|
|
|
|
2016-12-07 00:26:43 +01:00
|
|
|
st7735_draw_bitmap(10, 10, &logo);
|
2016-12-06 19:51:07 +01:00
|
|
|
|
2016-12-07 00:26:43 +01:00
|
|
|
while(1);
|
2016-12-06 19:51:07 +01:00
|
|
|
}
|