I am doing a calendar page but i have a problem my set day name codes;
const char *cal_days[7] = { “Pzt”, “Sal”, “Car”,“Per”,“Cum”,“Cmt”,“Paz” };
lv_calendar_set_day_names(tos_calendarObj, cal_days);
but i dont take screen and simulator closing itself;
My calender all function;
void tos_calendarCalendar(void) {
const char *cal_days[7] = { “Pzt”, “Sal”, “Car”,“Per”,“Cum”,“Cmt”,“Paz” };
tos_calendarObj = lv_calendar_create(lv_scr_act(), NULL);
lv_obj_set_size(tos_calendarObj, 200, 200);
lv_obj_align(tos_calendarObj, NULL, LV_ALIGN_CENTER, 0, 0);
lv_calendar_set_day_names(tos_calendarObj, cal_days);
lv_obj_set_event_cb(tos_calendarObj, tos_calendar_CalendarEvent);
today.year = tos_calendarYears;
today.month = tos_calendarMonths;
today.day = tos_calendarDays;
lv_calendar_set_today_date(tos_calendarObj, &today);
lv_calendar_set_showed_date(tos_calendarObj, &today);
static lv_calendar_date_t highlihted_days[1]; /*Only it's pointer will be saved so should be static*/
highlihted_days[0].year = 2020;
highlihted_days[0].month = 5;
highlihted_days[0].day = 12;
lv_calendar_set_highlighted_dates(tos_calendarObj, highlihted_days, 1);
}