NanoVNA/numfont20x22.c
DiSlord b7934745ca Restore main thread stack size (stack usage code optimization give good result)
Decrease sweep thread stack size from 640 to 512 (also stack usage code optimization give good result)
Little change 16x22 font

ui.c
Use definition for some hard coded values
Fix button "Correction" not reset after use "reset"
Define menu button and input num size

#define MENU_BUTTON_WIDTH  60
#define MENU_BUTTON_HEIGHT 30
#define NUM_INPUT_HEIGHT   30

Reduce button height from 32 to 30 pixels (fix in stimulus menu "<back" button overwrite by input num field)
Little code change
2020-02-26 23:30:50 +03:00

557 lines
12 KiB
C

/*
* Copyright (c) 2014-2019, TAKAHASHI Tomohiro (TTRFTECH) edy555@gmail.com
* All rights reserved.
*
* Converted to hex by @qrp73 [ https://github.com/qrp73 ]
*
* This 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 3, or (at your option)
* any later version.
*
* The software 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 GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#include <stdint.h>
const uint16_t numfont16x22[] = {
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b0000000011110000,
0b0000000111110000,
0b0000001111110000,
0b0000011111110000,
0b0000111111110000,
0b0000111111110000,
0b0000111011110000,
0b0000110011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000000011110000,
0b0000001111111100,
0b0000001111111100,
0b0000001111111100,
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b0000000000011111,
0b0000000000111111,
0b0000000001111110,
0b0000000011111100,
0b0000000111111000,
0b0000001111110000,
0b0000011111100000,
0b0000111111000000,
0b0001111110000000,
0b0011111100000000,
0b0111111000000000,
0b1111110000000000,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b0000000000011110,
0b0000000000111110,
0b0000000111111100,
0b0000000111111000,
0b0000000111111100,
0b0000000001111110,
0b0000000000011111,
0b0000000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b0000000111111000,
0b0000000111111000,
0b0000001111111000,
0b0000001111111000,
0b0000011111111000,
0b0000011111111000,
0b0000111111111000,
0b0000111101111000,
0b0001111101111000,
0b0001111001111000,
0b0011111001111000,
0b0011110001111000,
0b0111110001111000,
0b0111100001111000,
0b1111100001111000,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b0000000001111000,
0b0000000001111000,
0b0000000001111000,
0b0000000001111000,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111011111110000,
0b1111111111111100,
0b1111111111111110,
0b1111110000111110,
0b1111100000011111,
0b0000000000001111,
0b0000000000001111,
0b0000000000001111,
0b0000000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000000000,
0b1111000000000000,
0b1111011111110000,
0b1111111111111100,
0b1111111111111110,
0b1111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b0000000000011111,
0b0000000000111110,
0b0000000001111100,
0b0000000011111000,
0b0000000111110000,
0b0000000111100000,
0b0000001111100000,
0b0000001111000000,
0b0000011111000000,
0b0000011110000000,
0b0000011110000000,
0b0000111110000000,
0b0000111100000000,
0b0000111100000000,
0b0000111100000000,
0b0000111100000000,
0b0000111100000000,
0b0000111100000000,
0b0000111100000000,
0b0000011111100000,
0b0001111111111000,
0b0011111111111100,
0b0111110000111110,
0b0111100000011110,
0b0111100000011110,
0b0111100000011110,
0b0011110000111100,
0b0001111111111000,
0b0000111111110000,
0b0011111111111100,
0b0111110000111110,
0b0111100000011110,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111111,
0b0111111111111111,
0b0011111111111111,
0b0000111111111111,
0b0000000000001111,
0b0000000000001111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111110,
0b0111111111111110,
0b0011111111111100,
0b0000111111110000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000001110000000,
0b0000011111000000,
0b0000011111000000,
0b0000001110000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0011111111111100,
0b0011111111111100,
0b0011111111111100,
0b0011111111111100,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000011,
0b0000000000000111,
0b0000000000001111,
0b0000000000011111,
0b0000000000111111,
0b0000000001111111,
0b0000000000001111,
0b0000000000001111,
0b0000000000001111,
0b0110000011001111,
0b1111000111101111,
0b0111101111001111,
0b0011111110001111,
0b0001111100001111,
0b0001111100001111,
0b0011111110001111,
0b0111101111001111,
0b1111000111101111,
0b0110000011001111,
0b0000000000001111,
0b0000000000001111,
0b0000000000001111,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000111110,
0b1111000001111100,
0b1111000011111000,
0b1111000111110000,
0b1111001111100000,
0b1111011111000000,
0b1111111110000000,
0b1111111100000000,
0b1111111100000000,
0b1111111110000000,
0b1111011111000000,
0b1111001111100000,
0b1111000111110000,
0b1111000011111000,
0b1111000001111100,
0b1111000000111110,
0b1111000000001111,
0b1111000000001111,
0b1111100000011111,
0b1111100000011111,
0b1111110000111111,
0b1111110000111111,
0b1111111001111111,
0b1111111001111111,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111011111101111,
0b1111011111101111,
0b1111001111001111,
0b1111001111001111,
0b1111000110001111,
0b1111000110001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b0000111111110000,
0b0011111111111100,
0b0111111111111110,
0b0111110000111110,
0b1111100000011111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
0b1111000000111111,
0b1111000000111111,
0b1111000000111111,
0b1111000000000111,
0b1111000000001111,
0b1111100000011111,
0b0111110000111111,
0b0111111111111111,
0b0011111111110111,
0b0000111111100111,
0b0000000000000000,
0b0000000000000000,
0b0000000001000000,
0b0000000011000000,
0b0000000111000000,
0b0000001111000000,
0b0000011111000000,
0b0000111111111111,
0b0001111111111111,
0b0011111111111111,
0b0111111111111111,
0b1111111111111111,
0b0111111111111111,
0b0011111111111111,
0b0001111111111111,
0b0000111111111111,
0b0000011111000000,
0b0000001111000000,
0b0000000111000000,
0b0000000011000000,
0b0000000001000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0001111000111100,
0b0011111101111110,
0b0111001111100110,
0b0110000111000011,
0b1110000111000011,
0b1100000110000011,
0b1100000110000011,
0b1100000110000011,
0b1100000110000011,
0b1100001110000111,
0b1100001110000110,
0b0110011111001110,
0b0111111011111100,
0b0011110001111000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000011101111100,
0b0000011101111110,
0b0000001101100110,
0b0000001101100110,
0b0000001101100110,
0b0000001101100110,
0b0000001101100110,
0b0011101101111100,
0b0111111101111110,
0b1110011101100111,
0b1100001101100011,
0b1100001101100011,
0b1100001101100011,
0b1100001101100011,
0b1100001101100011,
0b1100001101100011,
0b1110011101100111,
0b0111111101111110,
0b0011101101111100,
0b0000000000000000,
0b0000000000000000,
0b0000001110000000,
0b0000001110000000,
0b0000001110000000,
0b0000001110000000,
0b0011111111111000,
0b0011111111111000,
0b0011111111111000,
0b0000001110000000,
0b0000001110000000,
0b0000001110000000,
0b0000001110000000,
0b0000000000000000,
0b0000000000000000,
0b0011111111111000,
0b0011111111111000,
0b0011111111111000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0000000000000000,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0000000000000000,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0000000000000000,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0111101111011110,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b1111000111110000,
0b1111011111111100,
0b1111111111111110,
0b1111111000111110,
0b1111110000011111,
0b1111100000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b1111000000001111,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b1111001111110000,
0b1111011111111100,
0b1111111111111110,
0b1111111000011111,
0b1111110000001111,
0b1111100000000111,
0b1111100000000111,
0b1111100000000111,
0b1111110000001111,
0b1111111000011111,
0b1111111111111110,
0b1111011111111100,
0b1111001111110000,
0b1111000000000000,
0b1111000000000000,
0b1111000000000000,
};