write_to_buffer wszystkie testy pomyslne
This commit is contained in:
@@ -82,10 +82,9 @@ uint8_t SSD1306_display_page(void);
|
|||||||
void SSD1306_clear(uint8_t color);
|
void SSD1306_clear(uint8_t color);
|
||||||
|
|
||||||
void ssd1306_set_pixel(uint8_t x, uint8_t y, uint8_t bw);
|
void ssd1306_set_pixel(uint8_t x, uint8_t y, uint8_t bw);
|
||||||
void ssd1306_write_to_buffer(const uint8_t* data, uint8_t width, uint8_t height, int8_t pos_x, int8_t pos_y);
|
void SSD1306_write_to_buffer(const uint8_t* data, uint8_t width, uint8_t height, int8_t pos_x, int8_t pos_y);
|
||||||
void ssd1306_clear_buffer (uint8_t width, uint8_t height, uint8_t pos_x, uint8_t pos_y);
|
void ssd1306_clear_buffer (uint8_t width, uint8_t height, uint8_t pos_x, uint8_t pos_y);
|
||||||
|
|
||||||
void next(const uint8_t* bitmap, uint8_t bitmap_width, uint8_t bitmap_height, int8_t pos_x, int8_t pos_y);
|
|
||||||
|
|
||||||
#ifdef TEST
|
#ifdef TEST
|
||||||
extern uint8_t buffer_oled[SSD1306_BUF_SIZE];
|
extern uint8_t buffer_oled[SSD1306_BUF_SIZE];
|
||||||
|
|||||||
@@ -148,62 +148,62 @@ void ssd1306_set_pixel(uint8_t x, uint8_t y, uint8_t bw)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ssd1306_write_to_buffer(const uint8_t* data, uint8_t width, uint8_t height, int8_t pos_x, int8_t pos_y)
|
// void ssd1306_write_to_buffer(const uint8_t* data, uint8_t width, uint8_t height, int8_t pos_x, int8_t pos_y)
|
||||||
{
|
// {
|
||||||
int16_t max_x, max_y;
|
// int16_t max_x, max_y;
|
||||||
uint8_t shift_x = 0, temp, row = 0;
|
// uint8_t shift_x = 0, temp, row = 0;
|
||||||
uint16_t buf_idx = 0, index = 0;
|
// uint16_t buf_idx = 0, index = 0;
|
||||||
|
|
||||||
|
|
||||||
// right boundry
|
// // right boundry
|
||||||
if (width + pos_x > SSD1306_LCDWIDTH) max_x = SSD1306_LCDWIDTH;
|
// if (width + pos_x > SSD1306_LCDWIDTH) max_x = SSD1306_LCDWIDTH;
|
||||||
else max_x = width + pos_x;
|
// else max_x = width + pos_x;
|
||||||
|
|
||||||
// left boundry
|
// // left boundry
|
||||||
if (pos_x < 0)
|
// if (pos_x < 0)
|
||||||
{
|
// {
|
||||||
shift_x = pos_x * -1;
|
// shift_x = pos_x * -1;
|
||||||
pos_x = 0;
|
// pos_x = 0;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// bottom boundry
|
// // bottom boundry
|
||||||
if (height + pos_y > SSD1306_LCDHEIGHT) max_y = SSD1306_LCDHEIGHT;
|
// if (height + pos_y > SSD1306_LCDHEIGHT) max_y = SSD1306_LCDHEIGHT;
|
||||||
else max_y = height + pos_y;
|
// else max_y = height + pos_y;
|
||||||
max_y = max_y / 8 + (max_y % 8 == 0 ? 0 : 1);
|
// max_y = max_y / 8 + (max_y % 8 == 0 ? 0 : 1);
|
||||||
|
|
||||||
// top boundry
|
// // top boundry
|
||||||
if (pos_y < 0)
|
// if (pos_y < 0)
|
||||||
{
|
// {
|
||||||
uint8_t abs_pos_y = pos_y * -1;
|
// uint8_t abs_pos_y = pos_y * -1;
|
||||||
row = abs_pos_y/8 + (abs_pos_y % 8 == 0 ? 0 : 1);
|
// row = abs_pos_y/8 + (abs_pos_y % 8 == 0 ? 0 : 1);
|
||||||
pos_y = (8 - abs_pos_y%8)%8;
|
// pos_y = (8 - abs_pos_y%8)%8;
|
||||||
}
|
// }
|
||||||
|
|
||||||
uint8_t shift = pos_y % 8;
|
// uint8_t shift = pos_y % 8;
|
||||||
uint8_t mask_lsb = 0xFF >> (8 - shift);
|
// uint8_t mask_lsb = 0xFF >> (8 - shift);
|
||||||
uint8_t mask_msb = 0xFF << shift;
|
// uint8_t mask_msb = 0xFF << shift;
|
||||||
|
|
||||||
for (uint8_t y = pos_y / 8; y < max_y; y++)
|
// for (uint8_t y = pos_y / 8; y < max_y; y++)
|
||||||
{
|
// {
|
||||||
index = width * row + shift_x;
|
// index = width * row + shift_x;
|
||||||
for (uint8_t x = pos_x; x < max_x; x++, index++)
|
// for (uint8_t x = pos_x; x < max_x; x++, index++)
|
||||||
{
|
// {
|
||||||
buf_idx = y * SSD1306_LCDWIDTH + x;
|
// buf_idx = y * SSD1306_LCDWIDTH + x;
|
||||||
temp = buffer_oled[buf_idx];
|
// temp = buffer_oled[buf_idx];
|
||||||
|
|
||||||
if (index < width * ((height + 7) / 8))
|
// if (index < width * ((height + 7) / 8))
|
||||||
temp = data[index] << shift | (temp & mask_lsb);
|
// temp = data[index] << shift | (temp & mask_lsb);
|
||||||
// else if (height%8 != 0)
|
// // else if (height%8 != 0)
|
||||||
// mask_msb = 0xFF << ((pos_y + height)%8);
|
// // mask_msb = 0xFF << ((pos_y + height)%8);
|
||||||
|
|
||||||
if (shift != 0 && index >= width)
|
// if (shift != 0 && index >= width)
|
||||||
temp = data[index - width] >> (8 - shift) | (temp & mask_msb);
|
// temp = data[index - width] >> (8 - shift) | (temp & mask_msb);
|
||||||
|
|
||||||
buffer_oled[buf_idx] = temp;
|
// buffer_oled[buf_idx] = temp;
|
||||||
}
|
// }
|
||||||
row++;
|
// row++;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
void ssd1306_clear_buffer (uint8_t width, uint8_t height, uint8_t pos_x, uint8_t pos_y)
|
void ssd1306_clear_buffer (uint8_t width, uint8_t height, uint8_t pos_x, uint8_t pos_y)
|
||||||
{
|
{
|
||||||
@@ -236,83 +236,93 @@ void ssd1306_clear_buffer (uint8_t width, uint8_t height, uint8_t pos_x, uint8_t
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
void next(const uint8_t* bitmap, uint8_t bitmap_width, uint8_t bitmap_height, int8_t pos_x, int8_t pos_y)
|
* @brief A function that writes a bitmap into the buffer at the given position.
|
||||||
|
* 0,0 -------->x
|
||||||
|
* |
|
||||||
|
* |
|
||||||
|
* \ /
|
||||||
|
* y
|
||||||
|
* @param bitmap A pointer to bitmap array.
|
||||||
|
* @param bitmap_width Bitmap witdh in pixels.
|
||||||
|
* @param bitmap_height Bitmap height in pixels.
|
||||||
|
* @param pos_x Position x in the display
|
||||||
|
* @param pos_y Position y in the display
|
||||||
|
*/
|
||||||
|
void SSD1306_write_to_buffer(const uint8_t* bitmap, uint8_t bitmap_width, uint8_t bitmap_height, int8_t pos_x, int8_t pos_y)
|
||||||
{
|
{
|
||||||
if (bitmap_width + pos_x < 0 || bitmap_height + pos_y < 0) return;
|
if (bitmap_width + pos_x < 0 || bitmap_height + pos_y < 0) return;
|
||||||
|
|
||||||
uint16_t tmp, bitmap_idx, bitmap_max_idx;
|
uint16_t tmp_buf16, bitmap_idx, bitmap_max_idx;
|
||||||
uint8_t buf_row_first, buf_row_last, buf_col_first, buf_col_last, bitmap_col, bitmap_row, bitmap_row_first;
|
uint8_t buf_row_first, buf_row_last, buf_col_first, buf_col_last;
|
||||||
uint8_t mask_buf;
|
uint8_t bitmap_col, bitmap_row, bitmap_row_first;
|
||||||
|
uint8_t mask_buf, shift;
|
||||||
|
|
||||||
if (pos_x < 0)
|
if (pos_x < 0) {
|
||||||
{
|
|
||||||
bitmap_col = pos_x * -1;
|
bitmap_col = pos_x * -1;
|
||||||
buf_col_first = 0;
|
buf_col_first = 0;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
bitmap_col = 0;
|
bitmap_col = 0;
|
||||||
buf_col_first = pos_x;
|
buf_col_first = pos_x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pos_y < 0)
|
if (pos_y < 0) {
|
||||||
{
|
shift = (pos_y * -1);
|
||||||
bitmap_row_first = (pos_y * -1) / 8;
|
bitmap_row_first = shift / 8;
|
||||||
buf_row_first = 0;
|
buf_row_first = 0;
|
||||||
}
|
} else {
|
||||||
else
|
shift = pos_y;
|
||||||
{
|
|
||||||
bitmap_row_first = 0;
|
bitmap_row_first = 0;
|
||||||
buf_row_first = pos_y / 8;
|
buf_row_first = pos_y / 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
bitmap_max_idx = bitmap_width * ((bitmap_height + 7) / 8);
|
if ((bitmap_width + pos_x) > SSD1306_LCDWIDTH) {
|
||||||
buf_col_last = (bitmap_width + pos_x) > SSD1306_LCDWIDTH ? SSD1306_LCDWIDTH : (bitmap_width + pos_x);
|
buf_col_last = SSD1306_LCDWIDTH;
|
||||||
// buf_row_last = (bitmap_height + pos_y) > SSD1306_LCDHEIGHT ? SSD1306_LCDHEIGHT / 8: (bitmap_height + pos_y + 7) / 8;
|
} else {
|
||||||
if (bitmap_height + pos_y > SSD1306_LCDHEIGHT)
|
buf_col_last = bitmap_width + pos_x;
|
||||||
{
|
|
||||||
buf_row_last = SSD1306_LCDHEIGHT / 8;
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
if (bitmap_height + pos_y > SSD1306_LCDHEIGHT) {
|
||||||
|
buf_row_last = SSD1306_LCDHEIGHT / 8;
|
||||||
|
} else {
|
||||||
buf_row_last = (bitmap_height + pos_y + 7) / 8;
|
buf_row_last = (bitmap_height + pos_y + 7) / 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bitmap_max_idx = bitmap_width * ((bitmap_height + 7) / 8);
|
||||||
|
|
||||||
for(uint8_t col = buf_col_first; col < buf_col_last; col++, bitmap_col++)
|
for(uint8_t col = buf_col_first; col < buf_col_last; col++, bitmap_col++)
|
||||||
{
|
{
|
||||||
tmp = 0;
|
tmp_buf16 = 0;
|
||||||
bitmap_row = bitmap_row_first;
|
bitmap_row = bitmap_row_first;
|
||||||
for( uint8_t buf_row = buf_row_first; buf_row < buf_row_last; buf_row++, bitmap_row++ )
|
for( uint8_t buf_row = buf_row_first; buf_row < buf_row_last; buf_row++, bitmap_row++ )
|
||||||
{
|
{
|
||||||
bitmap_idx = bitmap_width * bitmap_row + bitmap_col;
|
bitmap_idx = bitmap_width * bitmap_row + bitmap_col;
|
||||||
|
|
||||||
mask_buf = 0;
|
mask_buf = 0;
|
||||||
|
|
||||||
if (bitmap_row == 0)
|
if (bitmap_row == 0 && pos_y > 0) {
|
||||||
{
|
mask_buf |= 0xFF >> (8 - (shift % 8));
|
||||||
mask_buf |= 0xFF >> (8 - pos_y%8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t shifted_pixels_left = (pos_y + bitmap_height) - bitmap_row * 8;
|
uint8_t shifted_pixels_left = (pos_y + bitmap_height) - bitmap_row * 8;
|
||||||
if (shifted_pixels_left < 8)
|
if (shifted_pixels_left < 8) {
|
||||||
{
|
|
||||||
mask_buf |= (0xFF << shifted_pixels_left);
|
mask_buf |= (0xFF << shifted_pixels_left);
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp |= buffer_oled[buf_row * SSD1306_LCDWIDTH + col] & mask_buf;
|
tmp_buf16 |= buffer_oled[buf_row * SSD1306_LCDWIDTH + col] & mask_buf;
|
||||||
|
|
||||||
if (bitmap_idx < bitmap_max_idx)
|
if (bitmap_idx < bitmap_max_idx)
|
||||||
{
|
{
|
||||||
tmp |= bitmap[bitmap_idx] << pos_y%8;
|
if (pos_y < 0) {
|
||||||
}
|
tmp_buf16 |= bitmap[bitmap_idx] >> (shift % 8);
|
||||||
|
} else {
|
||||||
buffer_oled[buf_row * SSD1306_LCDWIDTH + col] = (uint8_t) tmp;
|
tmp_buf16 |= bitmap[bitmap_idx] << (shift % 8);
|
||||||
tmp = tmp >> 8;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buffer_oled[buf_row * SSD1306_LCDWIDTH + col] = (uint8_t) tmp_buf16;
|
||||||
|
tmp_buf16 = tmp_buf16 >> 8;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -286,6 +286,278 @@ const uint8_t posX_0_posY_7_8pt[] = {
|
|||||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const uint8_t posX_0_posY_minus1_8pt[] = {
|
||||||
|
// res: 128x64 - 1024 bytes
|
||||||
|
0xF0,0x9E,0x91,0x91,0x9E,0xF0,0x80,0xFF,0xC4,0xC4,0xC4,0xBB,0x80,0x9E,0xA1,0xC0,
|
||||||
|
0xC0,0xC0,0xC0,0x80,0xFF,0xC0,0xC0,0xC0,0xA1,0x9E,0x80,0xFF,0xC4,0xC4,0xC4,0xC0,
|
||||||
|
0x80,0xFF,0x84,0x84,0x84,0x84,0x80,0x9E,0xA1,0xC0,0xC8,0xC8,0xF8,0x80,0xFF,0x84,
|
||||||
|
0x84,0x84,0x84,0xFF,0x80,0xC0,0xFF,0xC0,0x80,0xC0,0xC0,0xC0,0xBF,0x80,0xFF,0x8C,
|
||||||
|
0x92,0xA1,0xC0,0x80,0xFF,0xC0,0xC0,0xC0,0x80,0xFF,0x81,0x86,0x98,0x86,0x81,0xFF,
|
||||||
|
0x80,0xFF,0x81,0x86,0x98,0xE0,0xFF,0x80,0x9E,0xA1,0xC0,0xC0,0xC0,0xA1,0x9E,0x80,
|
||||||
|
0xFF,0x88,0x88,0x88,0x87,0x80,0xFF,0x88,0x88,0x98,0xA7,0xC0,0x80,0xC3,0xC4,0xC4,
|
||||||
|
0xC4,0xB8,0x80,0x80,0x80,0xFF,0x80,0x80,0x80,0xBF,0xC0,0xC0,0xC0,0xC0,0xBF,0x80,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x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,0xFF,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
|
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint8_t posX_minus1_posY_0_8pt[] = {
|
||||||
|
// res: 128x64 - 1024 bytes
|
||||||
|
0x3C,0x23,0x23,0x3C,0xE0,0x00,0xFF,0x89,0x89,0x89,0x76,0x00,0x3C,0x42,0x81,0x81,
|
||||||
|
0x81,0x81,0x00,0xFF,0x81,0x81,0x81,0x42,0x3C,0x00,0xFF,0x89,0x89,0x89,0x81,0x00,
|
||||||
|
0xFF,0x09,0x09,0x09,0x09,0x00,0x3C,0x42,0x81,0x91,0x91,0xF1,0x00,0xFF,0x08,0x08,
|
||||||
|
0x08,0x08,0xFF,0x00,0x81,0xFF,0x81,0x00,0x80,0x81,0x81,0x7F,0x00,0xFF,0x18,0x24,
|
||||||
|
0x42,0x81,0x00,0xFF,0x80,0x80,0x80,0x00,0xFF,0x03,0x0C,0x30,0x0C,0x03,0xFF,0x00,
|
||||||
|
0xFF,0x03,0x0C,0x30,0xC0,0xFF,0x00,0x3C,0x42,0x81,0x81,0x81,0x42,0x3C,0x00,0xFF,
|
||||||
|
0x11,0x11,0x11,0x0E,0x00,0xFF,0x11,0x11,0x31,0x4E,0x80,0x00,0x86,0x89,0x89,0x89,
|
||||||
|
0x71,0x00,0x01,0x01,0xFF,0x01,0x01,0x00,0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F,0x9F,0x1F,0x0F,
|
||||||
|
0xFF,0x9F,0x9F,0x9F,0x9F,0x0F,0xCF,0x2F,0x1F,0x1F,0x1F,0x1F,0x0F,0xFF,0x8F,0x8F,
|
||||||
|
0x8F,0x8F,0xFF,0x0F,0x1F,0xFF,0x1F,0x0F,0x0F,0x1F,0x1F,0xFF,0x0F,0xFF,0x8F,0x4F,
|
||||||
|
0x2F,0x1F,0x0F,0xFF,0x0F,0x0F,0x0F,0x0F,0xFF,0x3F,0xCF,0x0F,0xCF,0x3F,0xFF,0x0F,
|
||||||
|
0xFF,0x3F,0xCF,0x0F,0x0F,0xFF,0x0F,0xCF,0x2F,0x1F,0x1F,0x1F,0x2F,0xCF,0x0F,0xFF,
|
||||||
|
0x1F,0x1F,0x1F,0xEF,0x0F,0xFF,0x1F,0x1F,0x1F,0xEF,0x0F,0x0F,0x6F,0x9F,0x9F,0x9F,
|
||||||
|
0x1F,0x0F,0x1F,0x1F,0xFF,0x1F,0x1F,0x0F,0xFF,0x0F,0x0F,0x0F,0x0F,0xFF,0x0F,0xFF,
|
||||||
|
};
|
||||||
|
|
||||||
const uint8_t picture_16pt[] = {
|
const uint8_t picture_16pt[] = {
|
||||||
// res: 128x16 - 256 bytes
|
// res: 128x16 - 256 bytes
|
||||||
0x00,0x00,0x00,0xE0,0xFC,0x1F,0x03,0x1F,0xFC,0xE0,0x00,0x00,0x00,0x00,0x00,0xFF,
|
0x00,0x00,0x00,0xE0,0xFC,0x1F,0x03,0x1F,0xFC,0xE0,0x00,0x00,0x00,0x00,0x00,0xFF,
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ const uint8_t posX_0_posY_0_8pt[1024];
|
|||||||
const uint8_t posX_0_posY_1_8pt[1024];
|
const uint8_t posX_0_posY_1_8pt[1024];
|
||||||
const uint8_t posX_0_posY_2_8pt[1024];
|
const uint8_t posX_0_posY_2_8pt[1024];
|
||||||
const uint8_t posX_0_posY_7_8pt[1024];
|
const uint8_t posX_0_posY_7_8pt[1024];
|
||||||
|
const uint8_t posX_0_posY_minus1_8pt[1024];
|
||||||
|
const uint8_t posX_0_posY_minus7_8pt[1024];
|
||||||
|
const uint8_t posX_minus1_posY_0_8pt[1024];
|
||||||
|
const uint8_t posX_minus1_posY_60_8pt[1024];
|
||||||
|
|
||||||
const uint8_t picture_16pt[256];
|
const uint8_t picture_16pt[256];
|
||||||
const uint8_t posX_0_posY_0_16pt[1024];
|
const uint8_t posX_0_posY_0_16pt[1024];
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ void tearDown(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_0_0_height_8pt(void)
|
void test_wrtie_to_buffer_at_pos_0_0_height_8pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 0);
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 0);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
||||||
@@ -29,14 +29,14 @@ void test_wrtie_to_buffer_at_pos_0_0_height_8pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_1_0_height_8pt(void)
|
void test_wrtie_to_buffer_at_pos_1_0_height_8pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 1);
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 1);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_wrtie_to_buffer_at_pos_7_0_height_8pt(void)
|
void test_wrtie_to_buffer_at_pos_7_0_height_8pt(void)
|
||||||
{
|
{
|
||||||
next(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 7);
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, 7);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_7_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_7_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ void test_wrtie_to_buffer_at_pos_7_0_height_8pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_0_0_height_16pt(void)
|
void test_wrtie_to_buffer_at_pos_0_0_height_16pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 0);
|
ssd1306_write_to_buffer(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 0);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
||||||
@@ -53,14 +53,14 @@ void test_wrtie_to_buffer_at_pos_0_0_height_16pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_1_0_height_16pt(void)
|
void test_wrtie_to_buffer_at_pos_1_0_height_16pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 1);
|
ssd1306_write_to_buffer(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 1);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_wrtie_to_buffer_at_pos_7_0_height_16pt(void)
|
void test_wrtie_to_buffer_at_pos_7_0_height_16pt(void)
|
||||||
{
|
{
|
||||||
next(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 7);
|
ssd1306_write_to_buffer(picture_16pt, SSD1306_LCDWIDTH, 16, 0, 7);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_7_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_7_16pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
@@ -68,7 +68,7 @@ void test_wrtie_to_buffer_at_pos_7_0_height_16pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_0_0_height_12pt(void)
|
void test_wrtie_to_buffer_at_pos_0_0_height_12pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 0);
|
ssd1306_write_to_buffer(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 0);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_0_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
||||||
@@ -77,7 +77,7 @@ void test_wrtie_to_buffer_at_pos_0_0_height_12pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_1_0_height_12pt(void)
|
void test_wrtie_to_buffer_at_pos_1_0_height_12pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 1);
|
ssd1306_write_to_buffer(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 1);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_1_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
@@ -85,7 +85,7 @@ void test_wrtie_to_buffer_at_pos_1_0_height_12pt(void)
|
|||||||
void test_wrtie_to_buffer_at_pos_0_4_height_12pt(void)
|
void test_wrtie_to_buffer_at_pos_0_4_height_12pt(void)
|
||||||
{
|
{
|
||||||
// uint8_t data[8] = {};
|
// uint8_t data[8] = {};
|
||||||
next(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 4);
|
ssd1306_write_to_buffer(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 4);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_4_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_UINT8_ARRAY(posX_0_posY_4_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
// TEST_ASSERT_EQUAL_UINT8(0xFF, buffer_oled[8]);
|
||||||
@@ -93,7 +93,42 @@ void test_wrtie_to_buffer_at_pos_0_4_height_12pt(void)
|
|||||||
|
|
||||||
void test_wrtie_to_buffer_at_pos_7_0_height_12pt(void)
|
void test_wrtie_to_buffer_at_pos_7_0_height_12pt(void)
|
||||||
{
|
{
|
||||||
next(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 7);
|
ssd1306_write_to_buffer(picture_12pt, SSD1306_LCDWIDTH, 12, 0, 7);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_0_posY_7_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_0_posY_7_12pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_wrtie_to_buffer_at_pos_minus1_0_height_8pt(void)
|
||||||
|
{
|
||||||
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, -1);
|
||||||
|
|
||||||
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_0_posY_minus1_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_wrtie_to_buffer_at_pos_minus7_0_height_8pt(void)
|
||||||
|
{
|
||||||
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, -7);
|
||||||
|
|
||||||
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_0_posY_minus7_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_wrtie_to_buffer_at_pos_minus8_0_height_8pt(void)
|
||||||
|
{
|
||||||
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, 0, -8);
|
||||||
|
|
||||||
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(buffer_oled, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_wrtie_to_buffer_at_pos_0_minus1_height_8pt(void)
|
||||||
|
{
|
||||||
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, -1, 0);
|
||||||
|
|
||||||
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_minus1_posY_0_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void test_wrtie_to_buffer_at_pos_60_minus1_height_8pt(void)
|
||||||
|
{
|
||||||
|
ssd1306_write_to_buffer(picture_8pt, SSD1306_LCDWIDTH, 8, -1, 60);
|
||||||
|
|
||||||
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(posX_minus1_posY_60_8pt, buffer_oled, SSD1306_BUF_SIZE);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user