Beispiel #1
0
void setAddr(uint8_t xStart, uint8_t yStart, uint8_t xEnd, uint8_t yEnd) {

	lcd_command_send(ST7735_CASET);
	lcd_data_send(0x00);
	lcd_data_send(xStart);
	lcd_data_send(0x00);
	lcd_data_send(xEnd);

	lcd_command_send(ST7735_RASET);
	lcd_data_send(0x00);
	lcd_data_send(yStart);
	lcd_data_send(0x00);
	lcd_data_send(yEnd);

	lcd_command_send(ST7735_RAMWR);
}
Beispiel #2
0
void setAddr(uint8_t xStart, uint8_t yStart, uint8_t xEnd, uint8_t yEnd) {

	lcd_command_send(ST7735_CASET);
	lcd_data_send(0x00); //High byte for address, not used since our screen is small
	lcd_data_send(xStart);
	lcd_data_send(0x00);
	lcd_data_send(xEnd);

	lcd_command_send(ST7735_RASET);
	lcd_data_send(0x00);
	lcd_data_send(yStart);
	lcd_data_send(0x00);
	lcd_data_send(yEnd);

	lcd_command_send(ST7735_RAMWR);
}
Beispiel #3
0
void writeConfigWithDelay(uint8_t command, uint8_t x10ms) {
	lcd_command_send(command);
	delay_ms(x10ms);
}
Beispiel #4
0
void writeConfig(uint8_t command, uint8_t num_args, const uint8_t *args) {
	lcd_command_send(command); // Send Command first
	while (num_args--) {
		lcd_data_send(*args++); //Send data per arg
	}
}