draw picture with accurate width and height
This commit is contained in:
parent
f458c0d0fe
commit
cb6ada1117
|
@ -52,8 +52,8 @@ void MX_SPI_Init(void)
|
|||
hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; //SPI_BAUDRATEPRESCALER_64;
|
||||
hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB;
|
||||
//hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||
//hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||
hspi1.Init.CRCPolynomial = 7;
|
||||
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||
// hspi1.Init.CRCPolynomial = 7;
|
||||
//hspi1.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE;
|
||||
//hspi1.Init.NSSPMode = SPI_NSS_PULSE_ENABLE;
|
||||
if (HAL_SPI_Init(&hspi1) != HAL_OK)
|
||||
|
|
|
@ -146,7 +146,7 @@ static void drawMeasurement(void ) {
|
|||
static void drawPicture(void) {
|
||||
for (y=0; y<24; y++) {
|
||||
for (x=0; x<32; x++) {
|
||||
BSP_LCD_FillRect(x*10, y*11, 9, 11, TempToColor(tempValues[(x) + (y*32)]));
|
||||
BSP_LCD_FillRect(x*8, y*11, 8, 11, TempToColor(tempValues[(x) + (y*32)]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue