looking more stable
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
#define TARGET_RX_PIN USBRX
|
||||
// #define BAUD_RATE 1843200
|
||||
// #define BAUD_RATE 921600
|
||||
// #define BAUD_RATE 460800
|
||||
#define BAUD_RATE 115200
|
||||
#define BAUD_RATE 460800
|
||||
// #define BAUD_RATE 115200
|
||||
|
||||
static BufferedSerial serial_port(TARGET_TX_PIN, TARGET_RX_PIN, BAUD_RATE);
|
||||
|
||||
@@ -26,7 +26,7 @@ static char rx_buffer[BUFFER_SIZE];
|
||||
|
||||
// ASCII fart background
|
||||
void draw_mask(const char *unused_filename, int shift, const char *text = nullptr) {
|
||||
const int view_width = 55; // visible width
|
||||
const int view_width = 50; // visible width
|
||||
const int view_height = 19;
|
||||
|
||||
// Terminal clear + home
|
||||
@@ -98,7 +98,7 @@ int main(void) {
|
||||
// shift = (shift + 1) % 8;
|
||||
|
||||
// }
|
||||
if (anim_timer.elapsed_time() >= 40ms) {
|
||||
if (anim_timer.elapsed_time() >= 80ms) {
|
||||
shift++;
|
||||
anim_timer.reset();
|
||||
|
||||
@@ -107,7 +107,7 @@ int main(void) {
|
||||
if (need_redraw) {
|
||||
draw_mask(bg_file, shift, message_active ? message : nullptr);
|
||||
need_redraw = false;
|
||||
ThisThread::sleep_for(40ms);
|
||||
ThisThread::sleep_for(60ms);
|
||||
}
|
||||
ThisThread::sleep_for(20ms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user