diff options
Diffstat (limited to 'keyboards/custommk')
45 files changed, 0 insertions, 2412 deletions
diff --git a/keyboards/custommk/bonsai_c4_template/bonsai_c4_template.c b/keyboards/custommk/bonsai_c4_template/bonsai_c4_template.c deleted file mode 100644 index 2129a712cf..0000000000 --- a/keyboards/custommk/bonsai_c4_template/bonsai_c4_template.c +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright 2022 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -// Set up SPI slave select pin -void keyboard_post_init_kb(void) { - #ifdef EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN - setPinOutput(EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN); - writePinHigh(EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN); - #endif -} diff --git a/keyboards/custommk/bonsai_c4_template/config.h b/keyboards/custommk/bonsai_c4_template/config.h deleted file mode 100644 index 192e9b0755..0000000000 --- a/keyboards/custommk/bonsai_c4_template/config.h +++ /dev/null @@ -1,79 +0,0 @@ -/* Copyright 2022 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include "config_common.h" - -// This file includes example #defines to enable commonly-used functionality -// (SPI, PWM backlight, etc.) on specific pins. Capabilities you want to include -// should be added to the config.h for your keyboard. Not all capabilities are -// shown; for example: -// I2C is not shown because the QMK defaults are sufficient for SCL on B6 and SDA on B7 -// Serial communications (for split keyboards) is not shown because QMK defaults work -// for either pins A15 or B6 - -// If you need to change pins for PWM, SPI, I2C, or Serial communications, be aware that -// doing this may require changing the driver, channel, PAL (Pin ALternate function) mode, -// DMA stream, and/or DMA channel. - - -// Bonsai C4 wires up pin A9 for Vbus sensing pin by default. For spilt keyboards, this -// can be used to determine which half of the keyboard is plugged into USB. -// For boards using Bonsai C4 merely as a reference design, the VBUS sense pin A9 -// can be used for purposes other than Vbus sensing (e.g. the switch -// matrix). -// -// If A9 is needed for Vbus sensing, uncomment the line -// below. Most keyboards using Bonsai C4 can leave the line below -// commented out. -// -// #undef BOARD_OTG_NOVBUSSENS - -// FRAM configuration -#define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A0 -#define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 8 // 96MHz / 8 = 12MHz; max supported by MB85R64 is 20MHz -#define EXTERNAL_EEPROM_PAGE_SIZE 64 // does not matter for FRAM, just sets the RAM buffer size in STM32F chip -#define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 8191 - -// External flash configuration -#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B12 -#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 1 // 96MHz; max supported by W25Q128JV is 133MHz -#define EXTERNAL_FLASH_BYTE_COUNT (16 * 1024 * 1024) //128Mbit or 16MByte -#define EXTERNAL_FLASH_PAGE_SIZE 256 -#define EXTERNAL_FLASH_SPI_TIMEOUT 200000 //datasheet max is 200 seconds for flash chip erase - -// SPI Configuration (needed for FRAM and FLASH) -#define SPI_DRIVER SPID1 -#define SPI_SCK_PIN B3 -#define SPI_MOSI_PIN B5 -#define SPI_MISO_PIN B4 - -// Example code to set up PWM backlight on pin A6 -// If a different pin is used, a different PWM driver/channel settings may be necessary -#define BACKLIGHT_PIN A6 -#define BACKLIGHT_PWM_DRIVER PWMD3 -#define BACKLIGHT_PWM_CHANNEL 1 - -// Example code for WS2812 underglow -// Only pin A10 is wired to send 5V signals to the WS2812 -// This also usually requires adding special wiring during board assembly -#define RGB_DI_PIN A10 -#define WS2812_PWM_DRIVER PWMD1 -#define WS2812_PWM_CHANNEL 3 -#define WS2812_PWM_PAL_MODE 1 -#define WS2812_DMA_STREAM STM32_DMA2_STREAM5 -#define WS2812_DMA_CHANNEL 6 diff --git a/keyboards/custommk/bonsai_c4_template/halconf.h b/keyboards/custommk/bonsai_c4_template/halconf.h deleted file mode 100644 index a90ea163f3..0000000000 --- a/keyboards/custommk/bonsai_c4_template/halconf.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2021 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -// If you are using I2C (e.g. for OLED), include this line -#define HAL_USE_I2C TRUE - -// If you are using PWM (e.g. for WS2812, backlight, etc.) include this line -#define HAL_USE_PWM TRUE - -// If you are using serial comms for split communications, include these lines -#define HAL_USE_SERIAL TRUE -#define SERIAL_BUFFERS_SIZE 256 - -// If you are using SPI (e.g. for FRAM, flash, etc.) include these lines -#define HAL_USE_SPI TRUE -#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD -// This enables interrupt-driven mode -#define SPI_USE_WAIT TRUE - -#include_next <halconf.h>
\ No newline at end of file diff --git a/keyboards/custommk/bonsai_c4_template/mcuconf.h b/keyboards/custommk/bonsai_c4_template/mcuconf.h deleted file mode 100644 index 4f926bd7de..0000000000 --- a/keyboards/custommk/bonsai_c4_template/mcuconf.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2022 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include_next <mcuconf.h> - -// Used for underglow in example code -#undef STM32_PWM_USE_TIM1 //timer 1 channel 3 -#define STM32_PWM_USE_TIM1 TRUE - -// Used for backlight in examples -#undef STM32_PWM_USE_TIM3 //timer 3 channel 1 -#define STM32_PWM_USE_TIM3 TRUE - -// Used for FRAM and flash in example code -#undef STM32_SPI_USE_SPI1 -#define STM32_SPI_USE_SPI1 TRUE - -// Used for Split comms in example code -#undef STM32_SERIAL_USE_USART1 -#define STM32_SERIAL_USE_USART1 TRUE
\ No newline at end of file diff --git a/keyboards/custommk/bonsai_c4_template/readme.md b/keyboards/custommk/bonsai_c4_template/readme.md deleted file mode 100644 index 0c0fd8ed0c..0000000000 --- a/keyboards/custommk/bonsai_c4_template/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -# Bonsai C4 template code - -Currently, the converter for Pro Micro to Bonsai C4 only does pin mapping. This is sufficient for simple keyboards and also a good start for -incorporating into more advanced keyboards with other features (like RGB, OLED, backlighting, split communiciations, etc.). However, to make -use of the more advanced features--including using the FRAM and flash memory chip included on Bonsai C4--various peripheral hardware must -be configured. Pro Micro does not requrie such configuration because such functionality is more limited and hard-wired to specific pins. - -The code here provides examples that can be used to operate SPI, I2C, PWM, and Serial comms. In addition to using the converter, you will -need to take code (as-needed) and add it to existing config.h files, or add in new halconf.h and mcuconf.h files. If you are changing which -pins are used for certain functions, you should verify the new pins support that functionality, and check all assingments to ensure the correct settings are used (including as-applicable driver, channel, PAL (Pin ALternate function) mode, DMA stream, and/or DMA channel). diff --git a/keyboards/custommk/evo70/config.h b/keyboards/custommk/evo70/config.h deleted file mode 100644 index f07560cb98..0000000000 --- a/keyboards/custommk/evo70/config.h +++ /dev/null @@ -1,51 +0,0 @@ -/* Copyright 2021 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include "config_common.h" - -#define OLED_UPDATE_INTERVAL 33 - -#define BACKLIGHT_PIN B5 -#define BACKLIGHT_LIMIT_VAL 255 -#define BACKLIGHT_ON_STATE 0 -#define BACKLIGHT_LEVELS 17 -#define BACKLIGHT_BREATHING -#define BREATHING_PERIOD 6 - -#define OLED_DISABLE_TIMEOUT - -#define ENCODERS_PAD_A { C7 } -#define ENCODERS_PAD_B { D5 } -#define ENCODER_RESOLUTION 2 -#define TAP_CODE_DELAY 10 - -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_CHRISTMAS -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_RGB_TEST -#define RGBLIGHT_EFFECT_ALTERNATING -#define RGBLIGHT_EFFECT_TWINKLE -#define RGBLIGHT_LAYERS -#define RGBLIGHT_LIMIT_VAL 128 -#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 4 - -#define RGBLIGHT_SLEEP
\ No newline at end of file diff --git a/keyboards/custommk/evo70/evo70.c b/keyboards/custommk/evo70/evo70.c deleted file mode 100644 index 4c15d03dd2..0000000000 --- a/keyboards/custommk/evo70/evo70.c +++ /dev/null @@ -1,811 +0,0 @@ -/* Copyright 2021 customMK - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "evo70.h" -#include <stdbool.h> -#include "matrix.h" -#include OLED_FONT_H - -//If Bongo cat not undefined, Scroll wheel will be enabled, -//but for scroll wheel to work, you must also set MOUSEKEY_ENABLE = yes -//in rules.mk -#define BONGOCAT - -/* Placement information for display elements */ -#define ENC_DISPLAY_X 0 -#define ENC_DISPLAY_Y 0 - -#define LAYER_DISPLAY_X 5 -#define LAYER_DISPLAY_Y 19 - -#define CAPSLOCK_DISPLAY_X 80 -#define CAPSLOCK_DISPLAY_Y 19 - -#define NUMLOCK_DISPLAY_X 105 -#define NUMLOCK_DISPLAY_Y 19 - -/* Encoder Parameters */ -static bool OLED_awakened = false; -static bool OLED_redraw = false; -static bool startup_complete = false; -static bool startup_delay = false; -static bool starting_up = false; - -#define ENCODER_MATRIX_ROW 5 -#define ENCODER_MATRIX_COL 6 - -#define ENC_SPLASH 0 -#define ENC_VOLUME 1 -#define ENC_MEDIA 2 -#define ENC_CUSTOM 3 -#define ENC_BL_BRIGHT 4 -#define ENC_BL_BREATH 5 -#define ENC_RGB_BRIGHT 6 -#define ENC_RGB_MODE 7 -#define ENC_RGB_COLOR 8 -#define ENC_SCROLL 9 -#ifdef BONGOCAT -#define ENC_BONGO 9 -#endif //bongocat - - -extern matrix_row_t matrix[MATRIX_ROWS]; - -char* enc_mode_str[] = { -#ifdef BONGOCAT - /* Splash */ "", \ - "Volume", \ - "Media Control", \ - "Custom", \ - "Backlight Brightness", \ - "Backlight Breathing", \ - "Underglow Brightness", \ - "Underglow Mode", \ - "Underglow Color", \ - "" // Bongo Cat -}; - -uint16_t enc_cw[] = { KC_VOLU, KC_VOLU, KC_MEDIA_NEXT_TRACK, KC_VOLU, 0, 0, 0, 0, 0, KC_VOLU }; -uint16_t enc_ccw[] = { KC_VOLD, KC_VOLD, KC_MEDIA_PREV_TRACK, KC_VOLD, 0, 0, 0, 0, 0, KC_VOLD }; -#else - /* Splash */ "", \ - "Volume", \ - "Media Control", \ - "Custom", \ - "Backlight Brightness", \ - "Backlight Breathing", \ - "Underglow Brightness", \ - "Underglow Mode", \ - "Underglow Color", \ - "Scroll Wheel" -}; - -uint16_t enc_cw[] = { KC_VOLU, KC_VOLU, KC_MEDIA_NEXT_TRACK, KC_VOLU, 0, 0, 0, 0, 0, KC_WH_U }; -uint16_t enc_ccw[] = { KC_VOLD, KC_VOLD, KC_MEDIA_PREV_TRACK, KC_VOLD, 0, 0, 0, 0, 0, KC_WH_D }; -#endif //bongocat - -uint8_t num_enc_modes = 10; - -uint8_t enc_mode_str_startpos[] = {0, 49, 28, 49, 7, 10, 7, 25, 22, 31}; - -uint8_t prev_layer = 255; -uint8_t prev_capslock = 255; -uint8_t prev_numlock = 255; - -typedef union { - uint32_t raw; - struct { - uint8_t enc_mode; - uint8_t breathingperiod; - bool oled_is_on : 1; - }; -} user_config_t; - -user_config_t user_config; - - - -/* OLED Draw Functions */ -/* TODO: Reimplement using Quantum Painter when available */ - -static void draw_line_h(uint8_t x, uint8_t y, uint8_t len, bool on) { - for (uint8_t i = 0; i < len; i++) { - oled_write_pixel(i + x, y, on); - } - } - - static void draw_line_v(uint8_t x, uint8_t y, uint8_t len, bool on) { - for (uint8_t i = 0; i < len; i++) { - oled_write_pixel(x, i + y, on); - } - } - -void draw_rect_soft(uint8_t x, uint8_t y, uint8_t width, uint8_t height, bool on) { - uint8_t tempHeight; - - draw_line_h(x + 1, y, width - 2, on); - draw_line_h(x + 1, y + height - 1, width - 2, on); - - tempHeight = height - 2; - - if (tempHeight < 1) return; - - draw_line_v(x, y + 1, tempHeight, on); - draw_line_v(x + width - 1, y + 1, tempHeight, on); -} - -void write_char_at_pixel_xy(uint8_t x, uint8_t y, const char data, bool invert) { - uint8_t i, j, temp; - uint8_t cast_data = (uint8_t)data; - - const uint8_t *glyph = &font[((uint8_t)cast_data - OLED_FONT_START) * OLED_FONT_WIDTH]; - temp = pgm_read_byte(glyph); - for (i = 0; i < OLED_FONT_WIDTH ; i++) { - for (j = 0; j < OLED_FONT_HEIGHT; j++) { - if (temp & 0x01) { - oled_write_pixel(x + i, y + j, !invert); - } else { - oled_write_pixel(x + i, y + j, invert); - } - temp >>= 1; - } - temp = pgm_read_byte(++glyph); - } -} - -void write_chars_at_pixel_xy(uint8_t x, uint8_t y, const char *data, bool invert) { - uint8_t c = data[0]; - uint8_t offset = 0; - while (c != 0) { - write_char_at_pixel_xy(x + offset, y, c, invert); - data++; - c = data[0]; - offset += 6; - } -} - - -void draw_rect_filled_soft(uint8_t x, uint8_t y, uint8_t width, uint8_t height, bool on) { - for (int i = x; i < x + width; i++) { - if (i == x || i == (x + width - 1)) - draw_line_v(i, y + 1, height - 2, on); - else - draw_line_v(i, y, height, on); - } -} - -void draw_text_rectangle(uint8_t x, uint8_t y, uint8_t width, char* str, bool filled) { - if (filled) { - draw_rect_filled_soft(x, y, width, 11, true); - write_chars_at_pixel_xy(x+3, y+2, str, true); - } else { - draw_rect_soft(x, y, width, 11, true); - write_chars_at_pixel_xy(x+3, y+2, str, false); - } -} - -void draw_keyboard_layer(void){ - uint8_t highest_layer; - highest_layer = get_highest_layer(layer_state); - draw_rect_filled_soft(LAYER_DISPLAY_X + highest_layer*12, LAYER_DISPLAY_Y, 11, 11, true); - - write_char_at_pixel_xy(LAYER_DISPLAY_X+3, LAYER_DISPLAY_Y+2, '0', highest_layer == 0); - write_char_at_pixel_xy(LAYER_DISPLAY_X+3+12, LAYER_DISPLAY_Y+2, '1', highest_layer == 1); - write_char_at_pixel_xy(LAYER_DISPLAY_X+3+24, LAYER_DISPLAY_Y+2, '2', highest_layer == 2); - write_char_at_pixel_xy(LAYER_DISPLAY_X+3+36, LAYER_DISPLAY_Y+2, '3', highest_layer == 3); - - draw_line_h(0, 14, 128, true); -} - - -static const uint8_t splash[] PROGMEM = { \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x1c, 0x06, 0x02, 0x02, \ - 0x03, 0x03, 0x83, 0x83, 0x83, 0x83, 0x03, 0x03, 0x03, 0x03, 0x83, 0x83, 0x83, 0x83, 0x83, 0x03, \ - 0x03, 0x03, 0x83, 0x83, 0x83, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x83, 0x83, 0x83, 0x83, 0x03, \ - 0x02, 0x02, 0x06, 0x0c, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x80, 0x80, 0xf8, 0xfe, 0x87, 0xe1, 0xbf, 0x9f, 0x00, 0x00, \ - 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0xff, 0xff, 0xff, 0x3f, 0xfc, 0xe0, 0xc0, 0xf8, 0x7f, 0x0f, 0xff, 0xff, 0x00, 0x00, \ - 0x00, 0x00, 0xff, 0xff, 0xff, 0x80, 0xc0, 0xf0, 0xf8, 0x3c, 0x1f, 0x0f, 0x03, 0x01, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfe, 0xc7, 0x83, \ - 0x83, 0x8f, 0xc6, 0xc0, 0xfe, 0xff, 0xc7, 0xc0, 0xf0, 0xff, 0xff, 0x81, 0xc0, 0xe0, 0x70, 0x9e, \ - 0x8f, 0xbf, 0xf8, 0xf0, 0x80, 0xc1, 0xe3, 0x7f, 0xff, 0xff, 0x83, 0x83, 0x83, 0xc1, 0xfc, 0xfe, \ - 0xff, 0x83, 0x83, 0xdf, 0xff, 0x7e, 0x18, 0x18, 0xfe, 0xff, 0xfb, 0x1c, 0x06, 0xff, 0xff, 0xff, \ - 0x3c, 0x0e, 0xe7, 0xff, 0xff, 0x80, 0xc0, 0xe0, 0x60, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, 0x01, 0x0f, 0x0f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, \ - 0x00, 0x00, 0xff, 0xff, 0xff, 0x07, 0x03, 0x03, 0x0f, 0x3f, 0x7c, 0xf8, 0xe0, 0x80, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, \ - 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x01, \ - 0x03, 0x03, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, \ - 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, \ - 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x38, 0x20, 0x40, 0x40, \ - 0x40, 0x40, 0x43, 0x43, 0x43, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x43, 0x43, 0x40, 0x40, \ - 0x40, 0x40, 0x43, 0x43, 0x43, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x41, 0x43, 0x43, 0x43, 0x40, \ - 0x40, 0x40, 0x60, 0x30, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; - -uint16_t startup_timer = 0; -bool redrawn_splash = false; - - -#ifdef BONGOCAT - - -#define ANIM_FRAME_DURATION 75 -#define IDLE_FRAMES 5 -#define IDLE_TIMEOUT 750 -#define SLEEP_TIMEOUT 15000 - - -static const uint8_t bongofont[] PROGMEM = { \ - 0xC1, 0xC1, 0xC2, 0x04, 0x08, 0x10, \ - 0xC0, 0x38, 0x04, 0x03, 0x00, 0x00, \ - 0xA0, 0x22, 0x24, 0x14, 0x12, 0x12, \ - 0xA0, 0x21, 0x22, 0x12, 0x11, 0x11, \ - 0x83, 0x7C, 0x41, 0x41, 0x40, 0x40, \ - 0x82, 0x82, 0x84, 0x08, 0x10, 0x20, \ - 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, \ - 0x80, 0x70, 0x19, 0x06, 0x00, 0x00, \ - 0x80, 0x70, 0x0C, 0x03, 0x00, 0x00, \ - 0x80, 0x00, 0x30, 0x30, 0x00, 0xC0, \ - 0x80, 0x00, 0x30, 0x30, 0x00, 0x00, \ - 0x49, 0x88, 0x08, 0x08, 0x08, 0x00, \ - 0x44, 0x84, 0x04, 0x04, 0x00, 0x00, \ - 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, \ - 0x40, 0x40, 0x20, 0x20, 0x20, 0x20, \ - 0x3C, 0xC2, 0x01, 0x01, 0x02, 0x02, \ - 0x35, 0x01, 0x8A, 0x7C, 0x00, 0x00, \ - 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, \ - 0x20, 0x21, 0x22, 0x12, 0x11, 0x11, \ - 0x20, 0x20, 0x10, 0x10, 0x10, 0x10, \ - 0x1E, 0xE1, 0x00, 0x00, 0x01, 0x01, \ - 0x1C, 0xE2, 0x01, 0x01, 0x02, 0x02, \ - 0x18, 0x64, 0x82, 0x02, 0x02, 0x02, \ - 0x18, 0x60, 0x80, 0x00, 0x00, 0x00, \ - 0x18, 0x18, 0x1B, 0x03, 0x00, 0x40, \ - 0x18, 0x06, 0x05, 0x98, 0x99, 0x84, \ - 0x12, 0x0B, 0x08, 0x08, 0x08, 0x08, \ - 0x11, 0x09, 0x08, 0x08, 0x08, 0x08, \ - 0x10, 0x10, 0xD0, 0x11, 0x0F, 0x21, \ - 0x10, 0x10, 0x10, 0x11, 0x0F, 0x01, \ - 0x10, 0x08, 0x08, 0x04, 0x04, 0x04, \ - 0x10, 0x08, 0x04, 0x02, 0x02, 0x04, \ - 0x0C, 0x30, 0x40, 0x80, 0x00, 0x00, \ - 0x0C, 0x0C, 0x0D, 0x01, 0x00, 0x40, \ - 0x08, 0xE8, 0x08, 0x07, 0x10, 0x24, \ - 0x08, 0x30, 0x40, 0x80, 0x00, 0x00, \ - 0x08, 0x08, 0x08, 0x07, 0x00, 0x00, \ - 0x08, 0x08, 0x04, 0x02, 0x02, 0x02, \ - 0x08, 0x04, 0x02, 0x01, 0x01, 0x02, \ - 0x05, 0x05, 0x09, 0x09, 0x10, 0x10, \ - 0x04, 0x38, 0x40, 0x80, 0x00, 0x00, \ - 0x04, 0x04, 0x08, 0x08, 0x10, 0x10, \ - 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, \ - 0x04, 0x04, 0x02, 0x01, 0x00, 0x00, \ - 0x02, 0x02, 0x81, 0x80, 0x80, 0x00, \ - 0x02, 0x02, 0x04, 0x04, 0x08, 0x08, \ - 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, \ - 0x02, 0x02, 0x01, 0x00, 0x00, 0x00, \ - 0x01, 0xE1, 0x1A, 0x06, 0x09, 0x31, \ - 0x01, 0x01, 0x02, 0x04, 0x08, 0x10, \ - 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, \ - 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, \ - 0x00, 0x80, 0x40, 0x40, 0x20, 0x20, \ - 0x00, 0x00, 0x80, 0x80, 0x40, 0x40, \ - 0x00, 0x00, 0x60, 0x60, 0x00, 0x81, \ - 0x00, 0x00, 0x01, 0x01, 0x00, 0x40 |