#pragma optimize("", off)

#include "system.h"
#include "gpio.h"
#include "spi.h"
#include "st7735.h"
//#include <stdio.h>

void setup() {
	pin_mode(PinC0, Output);
	pin_set(PinC0);
	spi_enable();
	st7735_enable(PinB2, PinB1);
	st7735_set_pixel(0, 0, 0xFFFF);
}

void loop() {
	//pin_toggle(PinC0);
	//delay_ms(10);
	//return;
	//if (system_ms() % 1000 < 500)
		pin_reset(PinC0);
		delay_ms(500);
	//else
		pin_set(PinC0);
		delay_ms(500);
}
spilogBreakout
ST7735S [128x160]Breakout