Compare commits
No commits in common. "748f7465e36a01f203b453f4b84dd9dd3f1d17a8" and "ee877803ab2e4ec5d537121349d02f9f2e2cac38" have entirely different histories.
748f7465e3
...
ee877803ab
@ -1,183 +0,0 @@
|
||||
#include "lvgl.h"
|
||||
|
||||
const LV_ATTRIBUTE_LARGE_CONST uint8_t compass_marker_north_map[] = {
|
||||
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8
|
||||
/*Pixel format: Red: 3 bit, Green: 3 bit, Blue: 2 bit*/
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0xf7, 0x69, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0xb2, 0xa0, 0xd7, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0xfb, 0x89, 0xe0, 0xa9, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0xb2, 0xa0, 0xe0, 0xe0, 0xb6, 0x1c, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0xff, 0xae, 0xc0, 0xe0, 0xe0, 0x89, 0xff, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0xfb, 0x80, 0xe0, 0xe0, 0xe0, 0xc0, 0xb6, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0xd2, 0xc0, 0xe0, 0xe0, 0xe0, 0xe0, 0x89, 0xfb, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0xff, 0x84, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xa0, 0xb7, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0xdb, 0x80, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x89, 0xfb, 0x1c, 0x1c,
|
||||
0x1c, 0xff, 0x89, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xa0, 0xdb, 0x1c, 0x1c,
|
||||
0x1c, 0xff, 0x60, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x85, 0xff, 0x1c,
|
||||
0x1c, 0xa9, 0xc0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xa0, 0xd7, 0x1c,
|
||||
0xff, 0x60, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0x64, 0xff,
|
||||
0xd2, 0xa0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xe0, 0xa0, 0xd2,
|
||||
0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 16 && LV_COLOR_16_SWAP == 0
|
||||
/*Pixel format: Red: 5 bit, Green: 6 bit, Blue: 5 bit*/
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x96, 0xed, 0x49, 0x62, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x10, 0x9c, 0x00, 0x98, 0x75, 0xc5, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x59, 0xe6, 0xc7, 0x81, 0x00, 0xf0, 0xc7, 0x99, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x10, 0xa4, 0x82, 0xb0, 0x00, 0xf8, 0x00, 0xd0, 0x92, 0xac, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x1c, 0xf7, 0x4d, 0xa3, 0x00, 0xc8, 0x20, 0xf8, 0x00, 0xf8, 0x49, 0x92, 0xfc, 0xf6, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x18, 0xd6, 0x82, 0x88, 0x21, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x41, 0xc0, 0xb2, 0xa4, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x72, 0xb4, 0x00, 0xb0, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x49, 0x82, 0x7a, 0xf6, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0x5d, 0xf7, 0xc3, 0x78, 0x21, 0xf0, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x20, 0xf8, 0x41, 0xb0, 0x55, 0xad, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0x96, 0xd5, 0x00, 0x88, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf0, 0x28, 0x8a, 0x7a, 0xf6, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0x5d, 0xf7, 0xc7, 0x81, 0x00, 0xd8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x20, 0xf8, 0x20, 0xa0, 0xd7, 0xbd, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xfb, 0xee, 0x00, 0x58, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x20, 0xf0, 0x66, 0x81, 0xbb, 0xfe, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0x8a, 0x92, 0x00, 0xc0, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x98, 0x75, 0xc5, 0xe0, 0x07,
|
||||
0x5d, 0xff, 0x41, 0x60, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf0, 0xe3, 0x68, 0x5d, 0xff,
|
||||
0xcf, 0xc3, 0x00, 0xa8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x90, 0x92, 0xb4,
|
||||
0xe3, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xc3, 0x18,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 16 && LV_COLOR_16_SWAP != 0
|
||||
/*Pixel format: Red: 5 bit, Green: 6 bit, Blue: 5 bit BUT the 2 bytes are swapped*/
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xed, 0x96, 0x62, 0x49, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x9c, 0x10, 0x98, 0x00, 0xc5, 0x75, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xe6, 0x59, 0x81, 0xc7, 0xf0, 0x00, 0x99, 0xc7, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xa4, 0x10, 0xb0, 0x82, 0xf8, 0x00, 0xd0, 0x00, 0xac, 0x92, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xf7, 0x1c, 0xa3, 0x4d, 0xc8, 0x00, 0xf8, 0x20, 0xf8, 0x00, 0x92, 0x49, 0xf6, 0xfc, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xd6, 0x18, 0x88, 0x82, 0xf8, 0x21, 0xf8, 0x00, 0xf8, 0x00, 0xc0, 0x41, 0xa4, 0xb2, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xb4, 0x72, 0xb0, 0x00, 0xf8, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x82, 0x49, 0xf6, 0x7a, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0xf7, 0x5d, 0x78, 0xc3, 0xf0, 0x21, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x20, 0xb0, 0x41, 0xad, 0x55, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0xd5, 0x96, 0x88, 0x00, 0xf8, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x8a, 0x28, 0xf6, 0x7a, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0xf7, 0x5d, 0x81, 0xc7, 0xd8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x20, 0xa0, 0x20, 0xbd, 0xd7, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0xee, 0xfb, 0x58, 0x00, 0xf8, 0x20, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf0, 0x20, 0x81, 0x66, 0xfe, 0xbb, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x92, 0x8a, 0xc0, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x98, 0x00, 0xc5, 0x75, 0x07, 0xe0,
|
||||
0xff, 0x5d, 0x60, 0x41, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf0, 0x00, 0x68, 0xe3, 0xff, 0x5d,
|
||||
0xc3, 0xcf, 0xa8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x90, 0x00, 0xb4, 0x92,
|
||||
0x20, 0xe3, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x18, 0xc3,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 32
|
||||
/*Pixel format: Fix 0xFF: 8 bit, Red: 8 bit, Green: 8 bit, Blue: 8 bit*/
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xaf, 0xaf, 0xe5, 0xff, 0x48, 0x48, 0x5e, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x80, 0x80, 0x9a, 0xff, 0x01, 0x01, 0x99, 0xff, 0xaa, 0xaa, 0xc1, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xc9, 0xc9, 0xe1, 0xff, 0x37, 0x37, 0x82, 0xff, 0x00, 0x00, 0xed, 0xff, 0x37, 0x37, 0x95, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x81, 0x81, 0x9e, 0xff, 0x0e, 0x0e, 0xac, 0xff, 0x01, 0x01, 0xff, 0xff, 0x00, 0x00, 0xd1, 0xff, 0x90, 0x90, 0xab, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xe0, 0xe0, 0xf1, 0xff, 0x67, 0x67, 0xa0, 0xff, 0x00, 0x00, 0xcb, 0xff, 0x02, 0x02, 0xfe, 0xff, 0x00, 0x00, 0xf8, 0xff, 0x48, 0x48, 0x8d, 0xff, 0xdd, 0xdd, 0xef, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xbf, 0xbf, 0xd1, 0xff, 0x0f, 0x0f, 0x8a, 0xff, 0x04, 0x04, 0xf7, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x01, 0x01, 0xff, 0xff, 0x08, 0x08, 0xbc, 0xff, 0x92, 0x92, 0xa0, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x8c, 0x8c, 0xb2, 0xff, 0x00, 0x00, 0xb0, 0xff, 0x02, 0x02, 0xff, 0xff, 0x00, 0x00, 0xfa, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xf8, 0xff, 0x49, 0x49, 0x83, 0xff, 0xcc, 0xcc, 0xed, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xe9, 0xe9, 0xee, 0xff, 0x18, 0x18, 0x77, 0xff, 0x05, 0x05, 0xef, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00, 0xfb, 0xff, 0x03, 0x03, 0xff, 0xff, 0x06, 0x06, 0xae, 0xff, 0xa9, 0xa9, 0xab, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xb1, 0xb1, 0xcc, 0xff, 0x00, 0x00, 0x89, 0xff, 0x03, 0x03, 0xff, 0xff, 0x00, 0x00, 0xfa, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x01, 0x01, 0xf2, 0xff, 0x42, 0x42, 0x87, 0xff, 0xcc, 0xcc, 0xf1, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0xe7, 0xe7, 0xee, 0xff, 0x39, 0x39, 0x7c, 0xff, 0x01, 0x01, 0xd6, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x00, 0x00, 0xfb, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xf9, 0xff, 0x03, 0x03, 0xff, 0xff, 0x02, 0x02, 0xa1, 0xff, 0xb7, 0xb7, 0xb9, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0xdb, 0xdb, 0xe5, 0xff, 0x01, 0x01, 0x55, 0xff, 0x03, 0x03, 0xff, 0xff, 0x00, 0x00, 0xf9, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x02, 0x02, 0xed, 0xff, 0x2d, 0x2d, 0x7f, 0xff, 0xd5, 0xd5, 0xf4, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x4e, 0x4e, 0x90, 0xff, 0x00, 0x00, 0xbc, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x00, 0x00, 0xfb, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfb, 0xff, 0x01, 0x01, 0xff, 0xff, 0x00, 0x00, 0x9a, 0xff, 0xab, 0xab, 0xbc, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0xe7, 0xe7, 0xfb, 0xff, 0x07, 0x07, 0x5e, 0xff, 0x00, 0x00, 0xfa, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xfe, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xfd, 0xff, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00, 0xee, 0xff, 0x1a, 0x1a, 0x65, 0xff, 0xe7, 0xe7, 0xfb, 0xff,
|
||||
0x77, 0x77, 0xc2, 0xff, 0x00, 0x00, 0xa9, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x93, 0xff, 0x8e, 0x8e, 0xb3, 0xff,
|
||||
0x1a, 0x1a, 0x1c, 0xff, 0x00, 0x00, 0x04, 0xff, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x03, 0xff, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00, 0x02, 0xff, 0x00, 0x00, 0x04, 0xff, 0x18, 0x18, 0x18, 0xff,
|
||||
#endif
|
||||
};
|
||||
|
||||
const lv_img_dsc_t compass_marker_north = {
|
||||
.header.cf = LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED,
|
||||
.header.always_zero = 0,
|
||||
.header.reserved = 0,
|
||||
.header.w = 14,
|
||||
.header.h = 15,
|
||||
.data_size = 210 * LV_COLOR_SIZE / 8,
|
||||
.data = compass_marker_north_map,
|
||||
};
|
||||
|
||||
const LV_ATTRIBUTE_LARGE_CONST uint8_t compass_marker_map[] = {
|
||||
#if LV_COLOR_DEPTH == 1 || LV_COLOR_DEPTH == 8
|
||||
/*Pixel format: Red: 3 bit, Green: 3 bit, Blue: 2 bit*/
|
||||
0x49, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x24, 0x49,
|
||||
0x6e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6e,
|
||||
0xdb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb,
|
||||
0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c,
|
||||
0x1c, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x1c,
|
||||
0x1c, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x92, 0x1c,
|
||||
0x1c, 0xdb, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xdb, 0x1c,
|
||||
0x1c, 0x1c, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x6d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6d, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0xb7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb7, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x49, 0x00, 0x00, 0x00, 0x00, 0x49, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x92, 0x00, 0x00, 0x00, 0x00, 0x92, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0xdb, 0x00, 0x00, 0x00, 0x00, 0xdb, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0x24, 0x00, 0x00, 0x24, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0x6d, 0x00, 0x00, 0x6d, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0xb6, 0x00, 0x00, 0xb6, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
0x1c, 0x1c, 0x1c, 0x1c, 0xff, 0x25, 0x25, 0xff, 0x1c, 0x1c, 0x1c, 0x1c,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 16 && LV_COLOR_16_SWAP == 0
|
||||
/*Pixel format: Red: 5 bit, Green: 6 bit, Blue: 5 bit*/
|
||||
0xc7, 0x39, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xc7, 0x39,
|
||||
0x4d, 0x6b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4d, 0x6b,
|
||||
0x96, 0xb5, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96, 0xb5,
|
||||
0xe0, 0x07, 0x41, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x08, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0x08, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x42, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0x51, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x8c, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0x7a, 0xd6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7a, 0xd6, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xc3, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x18, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xec, 0x62, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xec, 0x62, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0x35, 0xad, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x35, 0xad, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0x5d, 0xef, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x5d, 0xef, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xa6, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa6, 0x31, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xcf, 0x7b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcf, 0x7b, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x38, 0xc6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0xc6, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x82, 0x10, 0x00, 0x00, 0x00, 0x00, 0x82, 0x10, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x8a, 0x52, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x52, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xd3, 0x9c, 0x00, 0x00, 0x00, 0x00, 0xd3, 0x9c, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0x1c, 0xe7, 0x66, 0x31, 0x66, 0x31, 0x1c, 0xe7, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 16 && LV_COLOR_16_SWAP != 0
|
||||
/*Pixel format: Red: 5 bit, Green: 6 bit, Blue: 5 bit BUT the 2 bytes are swapped*/
|
||||
0x39, 0xc7, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x18, 0xa3, 0x39, 0xc7,
|
||||
0x6b, 0x4d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6b, 0x4d,
|
||||
0xb5, 0x96, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb5, 0x96,
|
||||
0x07, 0xe0, 0x08, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x41, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x42, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x08, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x8c, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8c, 0x51, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0xd6, 0x7a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd6, 0x7a, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x18, 0xc3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0xc3, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x62, 0xec, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x62, 0xec, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0xad, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xad, 0x35, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0xef, 0x5d, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0xef, 0x5d, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x31, 0xa6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0xa6, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x7b, 0xcf, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7b, 0xcf, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xc6, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc6, 0x38, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x10, 0x82, 0x00, 0x00, 0x00, 0x00, 0x10, 0x82, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x52, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x52, 0x8a, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x9c, 0xd3, 0x00, 0x00, 0x00, 0x00, 0x9c, 0xd3, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0xe7, 0x1c, 0x31, 0x66, 0x31, 0x66, 0xe7, 0x1c, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0, 0x07, 0xe0,
|
||||
#endif
|
||||
#if LV_COLOR_DEPTH == 32
|
||||
/*Pixel format: Fix 0xFF: 8 bit, Red: 8 bit, Green: 8 bit, Blue: 8 bit*/
|
||||
0x39, 0x39, 0x39, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x15, 0x15, 0x15, 0xff, 0x39, 0x39, 0x39, 0xff,
|
||||
0x66, 0x66, 0x66, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x66, 0x66, 0x66, 0xff,
|
||||
0xb0, 0xb0, 0xb0, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xb0, 0xb0, 0xb0, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x06, 0x06, 0x06, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x06, 0x06, 0x06, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x3e, 0x3e, 0x3e, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x3e, 0x3e, 0x3e, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x88, 0x88, 0x88, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x88, 0x88, 0x88, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0xcc, 0xcc, 0xcc, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xcc, 0xcc, 0xcc, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x17, 0x17, 0x17, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x17, 0x17, 0x17, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x5c, 0x5c, 0x5c, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x5c, 0x5c, 0x5c, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xa4, 0xa4, 0xa4, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xa4, 0xa4, 0xa4, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xe9, 0xe9, 0xe9, 0xff, 0x03, 0x03, 0x03, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x03, 0x03, 0x03, 0xff, 0xe9, 0xe9, 0xe9, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x78, 0x78, 0x78, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x78, 0x78, 0x78, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xc2, 0xc2, 0xc2, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xc2, 0xc2, 0xc2, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x10, 0x10, 0x10, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x10, 0x10, 0x10, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x50, 0x50, 0x50, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x50, 0x50, 0x50, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x99, 0x99, 0x99, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0x99, 0x99, 0x99, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0xde, 0xde, 0xde, 0xff, 0x2c, 0x2c, 0x2c, 0xff, 0x2c, 0x2c, 0x2c, 0xff, 0xde, 0xde, 0xde, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff,
|
||||
#endif
|
||||
};
|
||||
|
||||
const lv_img_dsc_t compass_marker = {
|
||||
.header.cf = LV_IMG_CF_TRUE_COLOR_CHROMA_KEYED,
|
||||
.header.always_zero = 0,
|
||||
.header.reserved = 0,
|
||||
.header.w = 12,
|
||||
.header.h = 18,
|
||||
.data_size = 216 * LV_COLOR_SIZE / 8,
|
||||
.data = compass_marker_map,
|
||||
};
|
File diff suppressed because it is too large
Load Diff
@ -1,254 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "lvgl.h"
|
||||
#include "compass_screen.h"
|
||||
#include "menu_screen.h"
|
||||
|
||||
static const char *cardinals[] =
|
||||
{
|
||||
"N",
|
||||
"NE",
|
||||
"E",
|
||||
"SE",
|
||||
"S",
|
||||
"SW",
|
||||
"W",
|
||||
"NW"
|
||||
};
|
||||
|
||||
static void gesture_event_cb(lv_event_t * e)
|
||||
{
|
||||
CompassScreen_t *compassScreen = e->user_data;
|
||||
|
||||
lv_dir_t gesture;
|
||||
switch(gesture = lv_indev_get_gesture_dir(lv_indev_get_act()))
|
||||
{
|
||||
case LV_DIR_LEFT:
|
||||
LV_LOG_USER("GESTURE : LEFT");
|
||||
break;
|
||||
case LV_DIR_RIGHT:
|
||||
LV_LOG_USER("GESTURE : RIGHT");
|
||||
// We create the menu screen and switch to it
|
||||
extern MenuScreen_t menuScreen;
|
||||
menu_screen_create(&menuScreen);
|
||||
lv_scr_load_anim(menuScreen.display, LV_SCR_LOAD_ANIM_MOVE_RIGHT, 400, 0, true);
|
||||
break;
|
||||
case LV_DIR_TOP:
|
||||
LV_LOG_USER("GESTURE : TOP");
|
||||
break;
|
||||
case LV_DIR_BOTTOM:
|
||||
LV_LOG_USER("GESTURE : BOTTOM");
|
||||
break;
|
||||
default:
|
||||
LV_LOG_USER("GESTURE : %u", gesture);
|
||||
}
|
||||
}
|
||||
|
||||
static void cleanup_event_cb(lv_event_t * e)
|
||||
{
|
||||
CompassScreen_t *compassScreen = e->user_data;
|
||||
compass_screen_destroy(compassScreen);
|
||||
LV_LOG_USER("cleanup");
|
||||
}
|
||||
|
||||
//To delete
|
||||
/*static void timer_anim_cb(lv_timer_t *timer)
|
||||
{
|
||||
CompassScreen_t *compassScreen = timer->user_data;
|
||||
static uint16_t azimuth = 0;
|
||||
compass_screen_set_azimuth(compassScreen, azimuth++);
|
||||
}*/
|
||||
|
||||
static void create_cardinal(CompassCardinal_t *cardidanl, const char *cardinalText, lv_color_t textColor, lv_coord_t x, lv_coord_t y, lv_obj_t *parent)
|
||||
{
|
||||
cardidanl->label = lv_label_create(parent);
|
||||
lv_label_set_text_static(cardidanl->label, cardinalText);
|
||||
lv_obj_set_style_text_font(cardidanl->label, &lv_font_montserrat_24, LV_PART_MAIN);
|
||||
lv_obj_set_style_text_color(cardidanl->label, textColor, LV_PART_MAIN);
|
||||
lv_obj_update_layout(cardidanl->label); //Needed to compute the height and width of the label, if not called, lv_obj_get_width and height return 0.
|
||||
//Let's compute the offset to move the origin of the letter to it's center :
|
||||
cardidanl->offset.x = lv_obj_get_width(cardidanl->label)/2;
|
||||
cardidanl->offset.y = lv_obj_get_height(cardidanl->label)/2;
|
||||
|
||||
cardidanl->position.x = x - cardidanl->offset.x;
|
||||
cardidanl->position.y = y - cardidanl->offset.y;
|
||||
lv_obj_set_pos(cardidanl->label, cardidanl->position.x, cardidanl->position.y);
|
||||
}
|
||||
|
||||
static void rotate_cardinal(CompassCardinal_t *cardinal, uint16_t azimuth)
|
||||
{
|
||||
lv_coord_t rotated_x, rotated_y;
|
||||
float azimuth_in_rads = (float)azimuth*M_PI/180.0;
|
||||
|
||||
rotated_x = (float)(cardinal->position.x-120+cardinal->offset.x)*cos(azimuth_in_rads) - (float)(cardinal->position.y-120+cardinal->offset.y)*sin(azimuth_in_rads) + 120-cardinal->offset.x;
|
||||
rotated_y = (float)(cardinal->position.y-120+cardinal->offset.y)*cos(azimuth_in_rads) + (float)(cardinal->position.x-120+cardinal->offset.x)*sin(azimuth_in_rads) + 120-cardinal->offset.y;
|
||||
lv_obj_set_pos(cardinal->label, rotated_x, rotated_y);
|
||||
}
|
||||
|
||||
void compass_screen_init(CompassScreen_t * const compassScreen)
|
||||
{
|
||||
if(!compassScreen)
|
||||
{
|
||||
LV_LOG_ERROR("NULL pointer given !");
|
||||
return;
|
||||
}
|
||||
|
||||
memset(compassScreen, 0, sizeof(CompassScreen_t));
|
||||
strcpy(compassScreen->compassAzimuth.text, "0° N");
|
||||
}
|
||||
|
||||
void compass_screen_set_azimuth(CompassScreen_t * const compassScreen, uint16_t azimuth)
|
||||
{
|
||||
if(!compassScreen)
|
||||
{
|
||||
LV_LOG_ERROR("NULL pointer given !");
|
||||
return;
|
||||
}
|
||||
|
||||
//Mandatory, if the screen is not displayed anymore, we should still be able to call this function !
|
||||
if(!compassScreen->display) return;
|
||||
|
||||
//We make sure the azimuth is in the right range ie 0 to 359
|
||||
azimuth %= 360;
|
||||
|
||||
uint8_t index;
|
||||
|
||||
if(azimuth >= 23 && azimuth <= 67)
|
||||
index = 1;//NE
|
||||
else if(azimuth >= 68 && azimuth <= 112)
|
||||
index = 2;//E
|
||||
else if(azimuth >= 113 && azimuth <= 157)
|
||||
index = 3;//SE
|
||||
else if(azimuth >= 158 && azimuth <= 202)
|
||||
index = 4;//S
|
||||
else if(azimuth >= 203 && azimuth <= 247)
|
||||
index = 5;//SW
|
||||
else if(azimuth >= 248 && azimuth <= 292)
|
||||
index = 6;//W
|
||||
else if(azimuth >= 293 && azimuth <= 337)
|
||||
index = 7;//NW
|
||||
else
|
||||
index = 0;//N
|
||||
|
||||
//Update the center label
|
||||
sprintf(compassScreen->compassAzimuth.text, "%u° %s", azimuth, cardinals[index]);
|
||||
lv_label_set_text_static(compassScreen->compassAzimuth.label, compassScreen->compassAzimuth.text);
|
||||
|
||||
//Rotate each cardinal with the current azimuth
|
||||
rotate_cardinal(&compassScreen->northCardinal, azimuth);
|
||||
lv_img_set_angle(compassScreen->northMarker, azimuth*10);
|
||||
rotate_cardinal(&compassScreen->eastCardinal, azimuth);
|
||||
rotate_cardinal(&compassScreen->southCardinal, azimuth);
|
||||
rotate_cardinal(&compassScreen->westCardinal, azimuth);
|
||||
}
|
||||
|
||||
void compass_screen_create(CompassScreen_t * const compassScreen)
|
||||
{
|
||||
if(!compassScreen)
|
||||
{
|
||||
LV_LOG_ERROR("NULL pointer given !");
|
||||
return;
|
||||
}
|
||||
|
||||
//We declare all the needed assets by the compass screen:
|
||||
LV_IMG_DECLARE(compass_marker)
|
||||
LV_IMG_DECLARE(compass_marker_north)
|
||||
|
||||
//We create our parent screen :
|
||||
if(compassScreen->display)
|
||||
{
|
||||
LV_LOG_ERROR("display should be NULL here !");
|
||||
lv_obj_del(compassScreen->display);
|
||||
compassScreen->display = NULL;
|
||||
}
|
||||
|
||||
compassScreen->display = lv_obj_create(NULL);
|
||||
lv_obj_set_style_bg_color(compassScreen->display, lv_color_white(), LV_PART_MAIN);
|
||||
|
||||
//Marker images are created here
|
||||
lv_obj_t *compassMarker = lv_img_create(compassScreen->display);
|
||||
lv_img_set_src(compassMarker, &compass_marker);
|
||||
lv_obj_set_pos(compassMarker, 113, 0);
|
||||
|
||||
if(compassScreen->northMarker)
|
||||
{
|
||||
LV_LOG_ERROR("img should be NULL here !");
|
||||
lv_obj_del(compassScreen->northMarker);
|
||||
compassScreen->northMarker = NULL;
|
||||
}
|
||||
compassScreen->northMarker = lv_img_create(compassScreen->display);
|
||||
lv_img_set_src(compassScreen->northMarker, &compass_marker_north);
|
||||
lv_obj_set_pos(compassScreen->northMarker, 113, 20);
|
||||
lv_img_set_pivot(compassScreen->northMarker, 7, 100);
|
||||
|
||||
//Azimuth label is created here
|
||||
if(compassScreen->compassAzimuth.label)
|
||||
{
|
||||
LV_LOG_ERROR("label should be NULL here !");
|
||||
lv_obj_del(compassScreen->compassAzimuth.label);
|
||||
compassScreen->compassAzimuth.label = NULL;
|
||||
}
|
||||
compassScreen->compassAzimuth.label = lv_label_create(compassScreen->display);
|
||||
lv_label_set_text_static(compassScreen->compassAzimuth.label, compassScreen->compassAzimuth.text);
|
||||
lv_obj_set_style_text_font(compassScreen->compassAzimuth.label, &lv_font_montserrat_28, LV_PART_MAIN);
|
||||
lv_obj_center(compassScreen->compassAzimuth.label);
|
||||
|
||||
//Cardinal labels are created here
|
||||
if(compassScreen->northCardinal.label)
|
||||
{
|
||||
LV_LOG_ERROR("label should be NULL here !");
|
||||
lv_obj_del(compassScreen->northCardinal.label);
|
||||
compassScreen->northCardinal.label = NULL;
|
||||
}
|
||||
create_cardinal(&compassScreen->northCardinal, cardinals[0], lv_palette_main(LV_PALETTE_RED), 120, 50, compassScreen->display);
|
||||
|
||||
|
||||
if(compassScreen->eastCardinal.label)
|
||||
{
|
||||
LV_LOG_ERROR("label should be NULL here !");
|
||||
lv_obj_del(compassScreen->eastCardinal.label);
|
||||
compassScreen->eastCardinal.label = NULL;
|
||||
}
|
||||
create_cardinal(&compassScreen->eastCardinal, cardinals[2], lv_color_black(), 190, 120, compassScreen->display);
|
||||
|
||||
if(compassScreen->southCardinal.label)
|
||||
{
|
||||
LV_LOG_ERROR("label should be NULL here !");
|
||||
lv_obj_del(compassScreen->southCardinal.label);
|
||||
compassScreen->southCardinal.label = NULL;
|
||||
}
|
||||
create_cardinal(&compassScreen->southCardinal, cardinals[4], lv_color_black(), 120, 190, compassScreen->display);
|
||||
|
||||
if(compassScreen->westCardinal.label)
|
||||
{
|
||||
LV_LOG_ERROR("label should be NULL here !");
|
||||
lv_obj_del(compassScreen->westCardinal.label);
|
||||
compassScreen->westCardinal.label = NULL;
|
||||
}
|
||||
create_cardinal(&compassScreen->westCardinal, cardinals[6], lv_color_black(), 50, 120, compassScreen->display);
|
||||
|
||||
//We register the event callback to handle gestures
|
||||
lv_obj_add_event_cb(compassScreen->display, &(gesture_event_cb), LV_EVENT_GESTURE, compassScreen);
|
||||
//We register the event callback to handle the cleanup
|
||||
lv_obj_add_event_cb(compassScreen->display, &(cleanup_event_cb), LV_EVENT_DELETE, compassScreen);
|
||||
|
||||
//To delete
|
||||
//lv_timer_create(&(timer_anim_cb), 2, compassScreen);
|
||||
}
|
||||
|
||||
void compass_screen_destroy(CompassScreen_t * const compassScreen)
|
||||
{
|
||||
if(!compassScreen)
|
||||
{
|
||||
LV_LOG_ERROR("NULL pointer given !");
|
||||
return;
|
||||
}
|
||||
|
||||
compassScreen->display = NULL;
|
||||
compassScreen->compassAzimuth.label = NULL;
|
||||
compassScreen->northCardinal.label = NULL;
|
||||
compassScreen->eastCardinal.label = NULL;
|
||||
compassScreen->southCardinal.label = NULL;
|
||||
compassScreen->westCardinal.label = NULL;
|
||||
compassScreen->northMarker = NULL;
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
#ifndef COMPASS_SCREEN_H
|
||||
#define COMPASS_SCREEN_H
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
typedef struct CompassAzimuthLabel
|
||||
{
|
||||
lv_obj_t *label;
|
||||
char text[9];
|
||||
} CompassAzimuth_t;
|
||||
|
||||
typedef struct CompassCardinal
|
||||
{
|
||||
lv_obj_t *label;
|
||||
lv_point_t position;
|
||||
lv_point_t offset;
|
||||
} CompassCardinal_t;
|
||||
|
||||
/* Compass screen context object */
|
||||
typedef struct CompassScreen
|
||||
{
|
||||
CompassCardinal_t northCardinal;
|
||||
CompassCardinal_t eastCardinal;
|
||||
CompassCardinal_t southCardinal;
|
||||
CompassCardinal_t westCardinal;
|
||||
|
||||
lv_obj_t *northMarker;
|
||||
lv_obj_t *display;
|
||||
|
||||
CompassAzimuth_t compassAzimuth;
|
||||
} CompassScreen_t;
|
||||
|
||||
/* Initializes the compass screen context object */
|
||||
void compass_screen_init(CompassScreen_t * const compassScreen);
|
||||
|
||||
/* Set the compassAzimuth in degrees to show */
|
||||
void compass_screen_set_azimuth(CompassScreen_t * const compassScreen, uint16_t azimuth);
|
||||
|
||||
/* Builds the compass screen graphically */
|
||||
void compass_screen_create(CompassScreen_t * const compassScreen);
|
||||
|
||||
/* Frees all resources used by the CompassScreen object */
|
||||
void compass_screen_destroy(CompassScreen_t * const compassScreen);
|
||||
|
||||
#endif // COMPASS_SCREEN_H
|
@ -5,9 +5,7 @@
|
||||
#include "lcd.h"
|
||||
#include "watch_face.h"
|
||||
#include "menu_screen.h"
|
||||
#include "compass_screen.h"
|
||||
#include "i2c.h"
|
||||
#include "QMC5883L.h"
|
||||
|
||||
#include "lv_port_indev.h"
|
||||
|
||||
@ -59,8 +57,6 @@ static void date_time_cb(struct tm * const dateTime)
|
||||
|
||||
WatchFace_t watchFace;
|
||||
MenuScreen_t menuScreen;
|
||||
CompassScreen_t compassScreen;
|
||||
|
||||
|
||||
void gfx_task(void *param)
|
||||
{
|
||||
@ -112,7 +108,6 @@ void gfx_task(void *param)
|
||||
|
||||
watch_face_init(&watchFace);
|
||||
menu_screen_init(&menuScreen);
|
||||
compass_screen_init(&compassScreen);
|
||||
|
||||
watch_face_register_cb(&watchFace, &(date_time_cb));
|
||||
watch_face_create(&watchFace);
|
||||
@ -120,68 +115,58 @@ void gfx_task(void *param)
|
||||
lv_scr_load(watchFace.display);
|
||||
|
||||
/* Let's init the I2C interface */
|
||||
i2c_init(WM_IO_PA_04, WM_IO_PA_01, 400000);
|
||||
i2c_init(WM_IO_PA_04, WM_IO_PA_01, 100000);
|
||||
|
||||
uint8_t aliveCounter = 0;
|
||||
uint8_t data = 0;
|
||||
|
||||
QMC5883L_MData_calibrated_t temp;
|
||||
uint8_t average = 0;
|
||||
/*i2c_write_reg(0x0D, 0x09, 0x01|0x0C|0x10|0X00);
|
||||
i2c_write_reg(0x0D, 0x0B, 0x01);*/
|
||||
|
||||
if(!QMC5883L_init())
|
||||
APP_LOG_INFO("Failed to init QMC5883L");
|
||||
else
|
||||
APP_LOG_INFO("Inited QMC5883L");
|
||||
|
||||
if(!QMC5883L_set_power_mode(Continuous))
|
||||
APP_LOG_INFO("Failed to set QMC5883L mode");
|
||||
else
|
||||
APP_LOG_INFO("QMC5883L Mode set");
|
||||
|
||||
if(!QMC5883L_configure_1(ODR_10HZ, FS_2G, OSR_512))
|
||||
APP_LOG_INFO("Failed to configure 1 QMC5883L");
|
||||
else
|
||||
APP_LOG_INFO("QMC5883L configured");
|
||||
|
||||
QMC5883L_set_calibration_data(-900, 2500, -1400, 1400, 2300, 7500);
|
||||
i2c_read_reg(0x76, 0xF4, &data);
|
||||
APP_LOG_INFO("0xF4 -> 0x%02X", data);
|
||||
i2c_write_reg(0x76, 0xF4, 0b11111111);
|
||||
i2c_read_reg(0x76, 0xF4, &data);
|
||||
APP_LOG_INFO("0xF4 -> 0x%02X", data);
|
||||
|
||||
for(;;)
|
||||
{
|
||||
lv_timer_handler();
|
||||
tls_os_time_delay(5);
|
||||
|
||||
if(QMC5883L_is_data_available())
|
||||
{
|
||||
//QMC5883L_MData_t MDataRaw = QMC5883L_get_MFields_raw();
|
||||
//APP_LOG_TRACE("X %d Y %d Z %d", MDataRaw.MFieldX, MDataRaw.MFieldY, MDataRaw.MFieldZ);
|
||||
|
||||
QMC5883L_MData_calibrated_t MData = QMC5883L_get_MFields_calibrated();
|
||||
|
||||
if(average++ == 0)
|
||||
{
|
||||
temp.MFieldX = MData.MFieldX;
|
||||
temp.MFieldY = MData.MFieldY;
|
||||
temp.MFieldZ = MData.MFieldZ;
|
||||
}
|
||||
else
|
||||
{
|
||||
temp.MFieldX += MData.MFieldX;
|
||||
temp.MFieldX /= 2;
|
||||
temp.MFieldY += MData.MFieldY;
|
||||
temp.MFieldY /= 2;
|
||||
temp.MFieldZ += MData.MFieldZ;
|
||||
temp.MFieldZ /= 2;
|
||||
}
|
||||
|
||||
if(average == 1)
|
||||
{
|
||||
average = 0;
|
||||
int16_t angle = QMC5883L_get_azimuth(temp);
|
||||
compass_screen_set_azimuth(&compassScreen, angle-180);
|
||||
}
|
||||
}
|
||||
|
||||
if(++aliveCounter % 200 == 0)
|
||||
{
|
||||
if(!i2c_read_reg(0x76, 0xD0, &data))
|
||||
{
|
||||
APP_LOG_ERROR("Failed to read BMP280 data");
|
||||
}
|
||||
else
|
||||
{
|
||||
APP_LOG_INFO("Read BMP280 reg 0xD0 -> 0x%02X", data);
|
||||
}
|
||||
|
||||
i2c_read_reg(0x76, 0xFC, &data);
|
||||
APP_LOG_INFO("0xFC -> 0x%02X", data);
|
||||
i2c_read_reg(0x76, 0xFB, &data);
|
||||
APP_LOG_INFO("0xFB -> 0x%02X", data);
|
||||
i2c_read_reg(0x76, 0xFA, &data);
|
||||
APP_LOG_INFO("0xFA -> 0x%02X", data);
|
||||
|
||||
|
||||
/*i2c_read_reg(0x0D, 0x00, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x00 -> 0x%02X", data);
|
||||
i2c_read_reg(0x0D, 0x01, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x01 -> 0x%02X", data);
|
||||
i2c_read_reg(0x0D, 0x02, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x02 -> 0x%02X", data);
|
||||
i2c_read_reg(0x0D, 0x03, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x03 -> 0x%02X", data);
|
||||
i2c_read_reg(0x0D, 0x04, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x04 -> 0x%02X", data);
|
||||
i2c_read_reg(0x0D, 0x05, &data);
|
||||
APP_LOG_INFO("Read HMC5883L reg 0x05 -> 0x%02X", data);*/
|
||||
|
||||
|
||||
APP_LOG_DEBUG("GFX thread");
|
||||
aliveCounter = 0;
|
||||
}
|
||||
|
@ -2,40 +2,26 @@
|
||||
#include "menu_screen.h"
|
||||
//#include "config_screen.h"
|
||||
#include "watch_face.h"
|
||||
#include "compass_screen.h"
|
||||
|
||||
#define array_size(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
static void menu_item_cb(lv_event_t *e)
|
||||
void watch_item_cb(lv_event_t *e)
|
||||
{
|
||||
uint32_t icon_id = (uint32_t)e->user_data;
|
||||
LV_LOG_USER("Menu icon pressed : %u", icon_id);
|
||||
LV_LOG_USER("Watch btn pressed");
|
||||
|
||||
switch(icon_id)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
extern WatchFace_t watchFace;
|
||||
watch_face_create(&watchFace);
|
||||
lv_scr_load_anim(watchFace.display, LV_SCR_LOAD_ANIM_FADE_ON, 400, 0, true);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
{
|
||||
extern CompassScreen_t compassScreen;
|
||||
compass_screen_create(&compassScreen);
|
||||
lv_scr_load_anim(compassScreen.display, LV_SCR_LOAD_ANIM_FADE_ON, 400, 0, true);
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
{
|
||||
//extern lv_obj_t *conf_screen;
|
||||
//lv_scr_load_anim(conf_screen, LV_SCR_LOAD_ANIM_FADE_ON, 400, 0, false);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
LV_LOG_USER("Not handled");
|
||||
}
|
||||
extern WatchFace_t watchFace;
|
||||
watch_face_create(&watchFace);
|
||||
//lv_scr_load_anim(watchFace.display, LV_SCR_LOAD_ANIM_FADE_ON, 700, 0, true);
|
||||
lv_scr_load_anim(watchFace.display, LV_SCR_LOAD_ANIM_MOVE_LEFT, 400, 0, true);
|
||||
}
|
||||
|
||||
void settings_item_cb(lv_event_t *e)
|
||||
{
|
||||
LV_LOG_USER("Settings btn pressed");
|
||||
|
||||
/*extern lv_obj_t *conf_screen;
|
||||
//config_screen();
|
||||
lv_scr_load_anim(conf_screen, LV_SCR_LOAD_ANIM_FADE_ON, 400, 0, false);*/
|
||||
}
|
||||
|
||||
static void cleanup_event_cb(lv_event_t * e)
|
||||
@ -77,7 +63,7 @@ static void menu_screen_add_item(lv_obj_t *scroll_item_container, uint8_t positi
|
||||
lv_obj_set_size(item_btn, itemImg->header.w, itemImg->header.h);
|
||||
lv_obj_set_pos(item_btn, 42, 52 * position);
|
||||
lv_imgbtn_set_src(item_btn, LV_IMGBTN_STATE_RELEASED, NULL, itemImg, NULL);
|
||||
lv_obj_add_event_cb(item_btn, itemClickEventCb, LV_EVENT_CLICKED, (void *)(uint32_t)position);
|
||||
lv_obj_add_event_cb(item_btn, itemClickEventCb, LV_EVENT_CLICKED, NULL);
|
||||
|
||||
//We add the click-able label with the title of the item
|
||||
lv_obj_t *item_label = lv_label_create(scroll_item_container);
|
||||
@ -87,7 +73,7 @@ static void menu_screen_add_item(lv_obj_t *scroll_item_container, uint8_t positi
|
||||
lv_obj_set_style_text_color(item_label, lv_color_make(145, 145, 145), LV_PART_MAIN);
|
||||
lv_obj_set_ext_click_area(item_label, 10);
|
||||
lv_obj_add_flag(item_label, LV_OBJ_FLAG_CLICKABLE);
|
||||
lv_obj_add_event_cb(item_label, itemClickEventCb, LV_EVENT_CLICKED , (void *)(uint32_t)position);
|
||||
lv_obj_add_event_cb(item_label, itemClickEventCb, LV_EVENT_CLICKED , NULL);
|
||||
}
|
||||
|
||||
void menu_screen_create(MenuScreen_t * const menuScreen)
|
||||
@ -97,7 +83,6 @@ void menu_screen_create(MenuScreen_t * const menuScreen)
|
||||
LV_LOG_ERROR("NULL pointer given !");
|
||||
return;
|
||||
}
|
||||
|
||||
//We declare all the needed assets by the menu screen:
|
||||
LV_IMG_DECLARE(watch_menu_clock_icon)
|
||||
LV_IMG_DECLARE(watch_menu_dialer_icon)
|
||||
@ -106,7 +91,6 @@ void menu_screen_create(MenuScreen_t * const menuScreen)
|
||||
LV_IMG_DECLARE(watch_menu_alarm_icon)
|
||||
LV_IMG_DECLARE(watch_menu_settings_icon)
|
||||
LV_IMG_DECLARE(watch_menu_messages_icon)
|
||||
LV_IMG_DECLARE(watch_menu_compass_icon)
|
||||
|
||||
//We create our parent screen :
|
||||
if(menuScreen->display)
|
||||
@ -130,14 +114,13 @@ void menu_screen_create(MenuScreen_t * const menuScreen)
|
||||
lv_obj_set_style_border_width(scroll_item_container, 0, LV_PART_MAIN);
|
||||
lv_obj_set_style_pad_right(scroll_item_container, 15, LV_PART_SCROLLBAR);
|
||||
|
||||
menu_screen_add_item(scroll_item_container, 0, &watch_menu_clock_icon, "Watch", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 1, &watch_menu_compass_icon, "Compass", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 2, &watch_menu_alarm_icon, "Alarm", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 3, &watch_menu_messages_icon, "Text messages", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 4, &watch_menu_mail_icon, "Mails", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 5, &watch_menu_dialer_icon, "Phone", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 6, &watch_menu_contacts_icon, "Contacts", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 7, &watch_menu_settings_icon, "Settings", &(menu_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 0, &watch_menu_clock_icon, "Watch", &(watch_item_cb));
|
||||
menu_screen_add_item(scroll_item_container, 1, &watch_menu_alarm_icon, "Alarm", NULL);
|
||||
menu_screen_add_item(scroll_item_container, 2, &watch_menu_messages_icon, "Text messages", NULL);
|
||||
menu_screen_add_item(scroll_item_container, 3, &watch_menu_mail_icon, "Mails", NULL);
|
||||
menu_screen_add_item(scroll_item_container, 4, &watch_menu_dialer_icon, "Phone", NULL);
|
||||
menu_screen_add_item(scroll_item_container, 5,&watch_menu_contacts_icon, "Contacts", NULL);
|
||||
menu_screen_add_item(scroll_item_container, 6,&watch_menu_settings_icon, "Settings", &(settings_item_cb));
|
||||
|
||||
//We register the event callback to handle the cleanup
|
||||
lv_obj_add_event_cb(menuScreen->display, &(cleanup_event_cb), LV_EVENT_DELETE, menuScreen);
|
||||
|
@ -3,7 +3,6 @@
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
// Menu screen context object
|
||||
typedef struct MenuScreen
|
||||
{
|
||||
lv_obj_t *display;
|
||||
|
@ -162,7 +162,7 @@ void watch_face_create(WatchFace_t * const watchFace)
|
||||
//Date window is created here
|
||||
if(watchFace->dateWindow.dateWindowWidget)
|
||||
{
|
||||
LV_LOG_ERROR("dateWindowWidget should be NULL here !");
|
||||
LV_LOG_ERROR("dateWindow should be NULL here !");
|
||||
lv_obj_del(watchFace->dateWindow.dateWindowWidget);
|
||||
watchFace->dateWindow.dateWindowWidget = NULL;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
#define CODE_UPD_START_ADDR (0x8010000UL)
|
||||
|
||||
/**Run-time image header area*/
|
||||
#define CODE_RUN_START_ADDR (0x8010000UL)
|
||||
#define CODE_RUN_START_ADDR (0x80D0000UL)
|
||||
|
||||
/**Area can be used by User*/
|
||||
#define USER_ADDR_START (0x81E0000UL)
|
||||
|
@ -1,40 +0,0 @@
|
||||
/**
|
||||
* @file wm_flash_map.h
|
||||
*
|
||||
* @brief flash zone map
|
||||
*
|
||||
* @author dave
|
||||
*
|
||||
* Copyright (c) 2014 Winner Microelectronics Co., Ltd.
|
||||
*/
|
||||
#ifndef __WM_FLASH_MAP_H__
|
||||
#define __WM_FLASH_MAP_H__
|
||||
|
||||
/**FLASH MAP**/
|
||||
|
||||
/**Flash Base Address */
|
||||
#define FLASH_BASE_ADDR (0x8000000UL)
|
||||
|
||||
/**Upgrade image area*/
|
||||
#define CODE_UPD_START_ADDR (0x8010000UL)
|
||||
|
||||
/**Run-time image header area*/
|
||||
#define CODE_RUN_START_ADDR (0x80D0000UL)
|
||||
|
||||
/**Area can be used by User*/
|
||||
#define USER_ADDR_START (0x81E0000UL)
|
||||
|
||||
|
||||
/**System parameter defined in wm_internal_fls.c*/
|
||||
extern unsigned int TLS_FLASH_MESH_PARAM_ADDR;
|
||||
extern unsigned int TLS_FLASH_PARAM_DEFAULT;
|
||||
extern unsigned int TLS_FLASH_PARAM1_ADDR;
|
||||
extern unsigned int TLS_FLASH_PARAM2_ADDR;
|
||||
extern unsigned int TLS_FLASH_PARAM_RESTORE_ADDR;
|
||||
extern unsigned int TLS_FLASH_OTA_FLAG_ADDR;
|
||||
extern unsigned int TLS_FLASH_END_ADDR;
|
||||
|
||||
#define SIGNATURE_WORD (0xA0FFFF9FUL)
|
||||
#define IMAGE_START_ADDR_MSK (0x400)
|
||||
#endif /*__WM_CONFIG_H__*/
|
||||
|
@ -20,16 +20,9 @@
|
||||
* @version V1.0
|
||||
* @date 02. June 2017
|
||||
******************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
* Linker script addresses modified, now the memory map is the following :
|
||||
* Run Image Header (1KB) starts at 0x0801 0000
|
||||
* Application Run Image starts at 0x0801 0400 and is 1,855 MB
|
||||
* User Area is 112KB and starts at 0x081E 0000
|
||||
******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
I-SRAM : ORIGIN = 0x08010400 , LENGTH = 0x1CFC00 /* I-SRAM 1 855KB */
|
||||
I-SRAM : ORIGIN = 0x080d0400 , LENGTH = 0x120000 /* I-SRAM 1M+128KB */
|
||||
D-SRAM : ORIGIN = 0x20000100 , LENGTH = 0x47EFC /* D-SRAM 288KB */
|
||||
V-SRAM : ORIGIN = 0x20000000 , LENGTH = 0x100 /* off-chip SRAM 8MB */
|
||||
}
|
||||
|
@ -1,213 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/******************************************************************************
|
||||
* @file gcc_csky.ld
|
||||
* @brief csky linker file
|
||||
* @version V1.0
|
||||
* @date 02. June 2017
|
||||
******************************************************************************/
|
||||
MEMORY
|
||||
{
|
||||
I-SRAM : ORIGIN = 0x080d0400 , LENGTH = 0x120000 /* I-SRAM 1M+128KB */
|
||||
D-SRAM : ORIGIN = 0x20000100 , LENGTH = 0x47EFC /* D-SRAM 288KB */
|
||||
V-SRAM : ORIGIN = 0x20000000 , LENGTH = 0x100 /* off-chip SRAM 8MB */
|
||||
}
|
||||
|
||||
__min_heap_size = 0x18000;
|
||||
PROVIDE (__ram_end = 0x2003A000);
|
||||
PROVIDE (__heap_end = __ram_end);
|
||||
|
||||
REGION_ALIAS("REGION_TEXT", I-SRAM);
|
||||
REGION_ALIAS("REGION_RODATA", I-SRAM);
|
||||
REGION_ALIAS("REGION_VDATA", V-SRAM);
|
||||
REGION_ALIAS("REGION_DATA", D-SRAM);
|
||||
REGION_ALIAS("REGION_BSS", D-SRAM);
|
||||
|
||||
ENTRY(Reset_Handler)
|
||||
SECTIONS
|
||||
{
|
||||
.text : {
|
||||
. = ALIGN(0x4) ;
|
||||
KEEP(*startup.o(.vectors))
|
||||
__stext = . ;
|
||||
*(.text)
|
||||
*(.text*)
|
||||
*(.text.*)
|
||||
*(.gnu.warning)
|
||||
*(.stub)
|
||||
*(.gnu.linkonce.t*)
|
||||
*(.glue_7t)
|
||||
*(.glue_7)
|
||||
*(.jcr)
|
||||
KEEP (*(.init))
|
||||
KEEP (*(.fini))
|
||||
. = ALIGN (4) ;
|
||||
PROVIDE(__ctbp = .);
|
||||
*(.call_table_data)
|
||||
*(.call_table_text)
|
||||
. = ALIGN(0x10) ;
|
||||
__etext = . ;
|
||||
} > REGION_TEXT
|
||||
.rodata : {
|
||||
. = ALIGN(0x4) ;
|
||||
__srodata = .;
|
||||
*(.rdata)
|
||||
*(.rdata*)
|
||||
*(.rdata1)
|
||||
*(.rdata.*)
|
||||
*(.rodata)
|
||||
*(.rodata1)
|
||||
*(.rodata*)
|
||||
*(.rodata.*)
|
||||
*(.rodata.str1.4)
|
||||
. = ALIGN(0x4) ;
|
||||
__ctor_start__ = .;
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*crtbegin?.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
__ctor_end__ = .;
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*crtbegin?.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
__dtor_end__ = .;
|
||||
. = ALIGN(0x4) ;
|
||||
__erodata = .;
|
||||
} > REGION_RODATA
|
||||
.vdata : {
|
||||
. = ALIGN(0x4) ;
|
||||
__vdata_start__ = . ;
|
||||
KEEP(*startup.o(.vdata))
|
||||
. = ALIGN(0x4) ;
|
||||
__vdata_end__ = .;
|
||||
} > REGION_VDATA
|
||||
.data : {
|
||||
. = ALIGN(0x4) ;
|
||||
__sdata = . ;
|
||||
__data_start__ = . ;
|
||||
data_start = . ;
|
||||
*(.got.plt)
|
||||
*(.got)
|
||||
*(.gnu.linkonce.r*)
|
||||
*(.data)
|
||||
*(.data*)
|
||||
*(.data1)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d*)
|
||||
*(.data1)
|
||||
*(.gcc_except_table)
|
||||
*(.gcc_except_table*)
|
||||
__start_init_call = .;
|
||||
*(.initcall.init)
|
||||
__stop_init_call = .;
|
||||
__start_cmd = .;
|
||||
*(.bootloaddata.cmd)
|
||||
. = ALIGN(4) ;
|
||||
__stop_cmd = .;
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(__libc_atexit)
|
||||
*(__libc_subinit)
|
||||
*(__libc_subfreeres)
|
||||
*(.note.ABI-tag)
|
||||
. = ALIGN(0x4) ;
|
||||
__edata = .;
|
||||
__data_end__ = .;
|
||||
} > REGION_DATA AT > REGION_RODATA
|
||||
.bss : {
|
||||
. = ALIGN(0x4) ;
|
||||
__sbss = ALIGN(0x4) ;
|
||||
__bss_start__ = . ;
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.scommon)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(0x4) ;
|
||||
__ebss = . ;
|
||||
__end = . ;
|
||||
end = . ;
|
||||
__bss_end__ = .;
|
||||
} > REGION_BSS
|
||||
._user_heap : {
|
||||
. = ALIGN(0x4) ;
|
||||
__heap_start = .;
|
||||
. += __min_heap_size;
|
||||
. = ALIGN(0x4) ;
|
||||
} > REGION_BSS
|
||||
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } > REGION_BSS
|
||||
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) } > REGION_BSS
|
||||
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
|
||||
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
|
||||
.eh_frame_hdr : { *(.eh_frame_hdr) }
|
||||
.preinit_array :
|
||||
{
|
||||
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||
KEEP (*(.preinit_array))
|
||||
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||
}
|
||||
.init_array :
|
||||
{
|
||||
PROVIDE_HIDDEN (__init_array_start = .);
|
||||
KEEP (*(SORT(.init_array.*)))
|
||||
KEEP (*(.init_array))
|
||||
PROVIDE_HIDDEN (__init_array_end = .);
|
||||
}
|
||||
.fini_array :
|
||||
{
|
||||
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||
KEEP (*(.fini_array))
|
||||
KEEP (*(SORT(.fini_array.*)))
|
||||
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||
}
|
||||
.junk 0 : { *(.rel*) *(.rela*) }
|
||||
.stab 0 : { *(.stab) }
|
||||
.stabstr 0 : { *(.stabstr) }
|
||||
.stab.excl 0 : { *(.stab.excl) }
|
||||
.stab.exclstr 0 : { *(.stab.exclstr) }
|
||||
.stab.index 0 : { *(.stab.index) }
|
||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_pubtypes 0 : { *(.debug_pubtypes) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
|
||||
}
|
@ -358,9 +358,9 @@
|
||||
#define LV_FONT_MONTSERRAT_18 0
|
||||
#define LV_FONT_MONTSERRAT_20 0
|
||||
#define LV_FONT_MONTSERRAT_22 0
|
||||
#define LV_FONT_MONTSERRAT_24 1
|
||||
#define LV_FONT_MONTSERRAT_24 0
|
||||
#define LV_FONT_MONTSERRAT_26 0
|
||||
#define LV_FONT_MONTSERRAT_28 1
|
||||
#define LV_FONT_MONTSERRAT_28 0
|
||||
#define LV_FONT_MONTSERRAT_30 1
|
||||
#define LV_FONT_MONTSERRAT_32 0
|
||||
#define LV_FONT_MONTSERRAT_34 0
|
||||
|
@ -8,8 +8,8 @@
|
||||
#
|
||||
CONFIG_W800_TARGET_NAME="w800"
|
||||
CONFIG_W800_IMAGE_TYPE=1
|
||||
CONFIG_W800_IMAGE_HEADER=0x8010000
|
||||
CONFIG_W800_RUN_ADDRESS=0x8010400
|
||||
CONFIG_W800_IMAGE_HEADER=80D0000
|
||||
CONFIG_W800_RUN_ADDRESS=80D0400
|
||||
CONFIG_W800_UPDATE_ADDRESS=8010000
|
||||
CONFIG_W800_PRIKEY_SEL=0
|
||||
CONFIG_W800_IMAGE_SIGNATURE=0
|
||||
@ -19,7 +19,7 @@ CONFIG_W800_SECBOOT_IMAGE_TYPE=0
|
||||
#
|
||||
# Download Configuration
|
||||
#
|
||||
CONFIG_W800_DOWNLOAD_PORT="com10"
|
||||
CONFIG_W800_DOWNLOAD_PORT="com18"
|
||||
CONFIG_W800_DOWNLOAD_RATE=2000000
|
||||
|
||||
#
|
||||
@ -27,10 +27,10 @@ CONFIG_W800_DOWNLOAD_RATE=2000000
|
||||
#
|
||||
CONFIG_W800_USE_LIB=y
|
||||
CONFIG_W800_USE_NIMBLE=y
|
||||
# CONFIG_W800_FIRMWARE_DEBUG is not set
|
||||
CONFIG_W800_FIRMWARE_DEBUG=y
|
||||
|
||||
#
|
||||
# Toolchain Configuration
|
||||
#
|
||||
CONFIG_W800_TOOLCHAIN_PREFIX="csky-abiv2-elf"
|
||||
CONFIG_W800_TOOLCHAIN_PATH="D:\\csky-elfabiv2-tools-mingw-minilibc-20210423\\bin\\"
|
||||
CONFIG_W800_TOOLCHAIN_PATH="/d/Users/Think/Programmation/Arduino/HLK_W801_KIT_DOC_AND_TOOLS/csky-elfabiv2-tools-mingw-minilibc-20210423/bin/"
|
||||
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# WinnerMicro W800 Configuration
|
||||
#
|
||||
|
||||
#
|
||||
# Firmware Configuration
|
||||
#
|
||||
CONFIG_W800_TARGET_NAME="w800"
|
||||
CONFIG_W800_IMAGE_TYPE=1
|
||||
CONFIG_W800_IMAGE_HEADER=80D0000
|
||||
CONFIG_W800_RUN_ADDRESS=80D0400
|
||||
CONFIG_W800_UPDATE_ADDRESS=8010000
|
||||
CONFIG_W800_PRIKEY_SEL=0
|
||||
CONFIG_W800_IMAGE_SIGNATURE=0
|
||||
CONFIG_W800_CODE_ENCRYPT=0
|
||||
CONFIG_W800_SECBOOT_IMAGE_TYPE=0
|
||||
|
||||
#
|
||||
# Download Configuration
|
||||
#
|
||||
CONFIG_W800_DOWNLOAD_PORT="com10"
|
||||
CONFIG_W800_DOWNLOAD_RATE=2000000
|
||||
|
||||
#
|
||||
# Compile Configuration
|
||||
#
|
||||
CONFIG_W800_USE_LIB=y
|
||||
CONFIG_W800_USE_NIMBLE=y
|
||||
# CONFIG_W800_FIRMWARE_DEBUG is not set
|
||||
|
||||
#
|
||||
# Toolchain Configuration
|
||||
#
|
||||
CONFIG_W800_TOOLCHAIN_PREFIX="csky-abiv2-elf"
|
||||
CONFIG_W800_TOOLCHAIN_PATH="D:\\csky-elfabiv2-tools-mingw-minilibc-20210423\\bin\\"
|
Binary file not shown.
Before Width: | Height: | Size: 252 B |
Binary file not shown.
Before Width: | Height: | Size: 406 B |
Loading…
Reference in New Issue
Block a user