mirror of
https://github.com/JADE-Jerry/jcalendar.git
synced 2025-12-07 18:12:48 +08:00
Compare commits
2 Commits
bbe50b0b68
...
7929bc3e52
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7929bc3e52 | ||
|
|
56a4a3a029 |
@@ -130,6 +130,8 @@ A: 这个取决于选用的电池和使用场景,以及开发板的质量。
|
|||||||
A: 可能是开发板或驱动板的质量问题,实际发现有些板子休眠功耗能达2ma,这会极大影响待机时长。另外,由于电池容量的虚标,待机时长与理论计算值也有较大偏差。建议,增加电池测量电路,及时显示电池电量情况。
|
A: 可能是开发板或驱动板的质量问题,实际发现有些板子休眠功耗能达2ma,这会极大影响待机时长。另外,由于电池容量的虚标,待机时长与理论计算值也有较大偏差。建议,增加电池测量电路,及时显示电池电量情况。
|
||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
### 1.1.6
|
||||||
|
* Fix: 课程表页面星期显示位置不当。
|
||||||
### 1.1.5
|
### 1.1.5
|
||||||
* Fix: 将1680驱动加入GxEPD2,并放入项目的lib目录。
|
* Fix: 将1680驱动加入GxEPD2,并放入项目的lib目录。
|
||||||
### 1.1.4
|
### 1.1.4
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -101,7 +101,7 @@ void setup() {
|
|||||||
|
|
||||||
led_init();
|
led_init();
|
||||||
led_on();
|
led_on();
|
||||||
delay(1000);
|
delay(100);
|
||||||
int voltage = readBatteryVoltage();
|
int voltage = readBatteryVoltage();
|
||||||
Serial.printf("Battery: %d mV\r\n", voltage);
|
Serial.printf("Battery: %d mV\r\n", voltage);
|
||||||
if(voltage < 2500) {
|
if(voltage < 2500) {
|
||||||
|
|||||||
@@ -211,8 +211,8 @@ void draw_cal_year(bool partial) {
|
|||||||
u8g2Fonts.setForegroundColor(GxEPD_BLACK);
|
u8g2Fonts.setForegroundColor(GxEPD_BLACK);
|
||||||
u8g2Fonts.print("日");
|
u8g2Fonts.print("日");
|
||||||
|
|
||||||
calLayout.lunarYearX = u8g2Fonts.getCursorX() + 15;
|
calLayout.lunarYearX = u8g2Fonts.getCursorX() + 10;
|
||||||
calLayout.lunarDayX = u8g2Fonts.getCursorX() + 15;
|
calLayout.lunarDayX = u8g2Fonts.getCursorX() + 10;
|
||||||
|
|
||||||
// 第几周
|
// 第几周
|
||||||
u8g2Fonts.setFont(FONT_TEXT);
|
u8g2Fonts.setFont(FONT_TEXT);
|
||||||
@@ -238,7 +238,12 @@ void draw_cal_year(bool partial) {
|
|||||||
u8g2Fonts.setCursor(calLayout.lunarDayX, calLayout.lunarDayY);
|
u8g2Fonts.setCursor(calLayout.lunarDayX, calLayout.lunarDayY);
|
||||||
u8g2Fonts.setFont(FONT_SUB);
|
u8g2Fonts.setFont(FONT_SUB);
|
||||||
u8g2Fonts.setForegroundColor(GxEPD_BLACK);
|
u8g2Fonts.setForegroundColor(GxEPD_BLACK);
|
||||||
u8g2Fonts.print(todayLunarDay);
|
if (!todayLunarDay.isEmpty()) {
|
||||||
|
u8g2Fonts.print(todayLunarDay);
|
||||||
|
} else {
|
||||||
|
u8g2Fonts.setFont(FONT_TEXT);
|
||||||
|
u8g2Fonts.print(("星期" + week_str[tmInfo.tm_wday]).c_str());
|
||||||
|
}
|
||||||
|
|
||||||
// 特殊日期
|
// 特殊日期
|
||||||
// draw_special_day();
|
// draw_special_day();
|
||||||
@@ -955,14 +960,6 @@ void drawStudySchedule() {
|
|||||||
} while (true);
|
} while (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 显示当前周几, 农历年月不显示
|
|
||||||
todayLunarYear = "";
|
|
||||||
todayLunarDay = "";
|
|
||||||
uint16_t color = (tmInfo.tm_wday == 0 || tmInfo.tm_wday == 6) ? GxEPD_RED : GxEPD_BLACK;
|
|
||||||
u8g2Fonts.setBackgroundColor(GxEPD_WHITE);
|
|
||||||
u8g2Fonts.setForegroundColor(GxEPD_BLACK);
|
|
||||||
u8g2Fonts.setFont(FONT_TEXT);
|
|
||||||
u8g2Fonts.drawUTF8(calLayout.lunarDayX, calLayout.lunarDayY, ("星期" + week_str[tmInfo.tm_wday]).c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////// Calendar //////////////
|
///////////// Calendar //////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user