mirror of
https://github.com/RoCry/blozi-etag.git
synced 2026-03-15 23:13:16 +08:00
Cleanup unrelated changes
This commit is contained in:
@@ -25,12 +25,6 @@ RAM bool show_batt_or_humi;
|
||||
// Settings
|
||||
extern settings_struct settings;
|
||||
|
||||
// All black.
|
||||
// static unsigned char image[epd_buffer_size] = {0x00};
|
||||
|
||||
unsigned char image[epd_buffer_size];
|
||||
// unsigned char image2[epd_buffer_size];
|
||||
|
||||
void user_init_normal(void)
|
||||
{ // this will get executed one time after power up
|
||||
random_generator_init(); // must
|
||||
@@ -39,7 +33,6 @@ void user_init_normal(void)
|
||||
battery_mv = get_battery_mv();
|
||||
battery_level = get_battery_level(battery_mv);
|
||||
epd_display_tiff();
|
||||
EPD_Display(image, sizeof(image));
|
||||
}
|
||||
|
||||
_attribute_ram_code_ void user_init_deepRetn(void)
|
||||
@@ -71,7 +64,7 @@ _attribute_ram_code_ void main_loop()
|
||||
if (current_unix_time - last_update > 30)
|
||||
{
|
||||
last_update = current_unix_time;
|
||||
// epd_display(current_unix_time);
|
||||
epd_display(current_unix_time);
|
||||
}
|
||||
if (epd_state_handler()) // if epd_update is ongoing enable gpio wakeup to put the display to sleep as fast as possible
|
||||
{
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
#include "main.h"
|
||||
#include "stack/ble/ble.h"
|
||||
#include "uart.h"
|
||||
#include "epd.h"
|
||||
#include "epd_ble_service.h"
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -14,10 +14,6 @@ extern const uint8_t ucMirror[];
|
||||
#include "bart_tif.h"
|
||||
#include "font_60.h"
|
||||
|
||||
// #define epd_height 128
|
||||
// #define epd_width 250
|
||||
// #define epd_buffer_size ((epd_height/8) * epd_width)
|
||||
|
||||
RAM uint8_t epd_update_state = 0;
|
||||
|
||||
uint8_t epd_buffer[epd_buffer_size];
|
||||
|
||||
@@ -24,7 +24,7 @@ void init_uart()
|
||||
uart_ndma_irq_triglevel(0, 0);
|
||||
}
|
||||
|
||||
_attribute_ram_code_ void uart_write(const char* str)
|
||||
_attribute_ram_code_ void puts(const char* str)
|
||||
{
|
||||
while (*str != '\0')
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
void init_uart();
|
||||
void uart_write(const char* str);
|
||||
void init_uart();
|
||||
Reference in New Issue
Block a user