2024-05-09 05:56:55 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include "t_spi.h"
|
2024-05-09 06:38:55 +00:00
|
|
|
#include "t_iic.h"
|
2024-05-10 05:47:39 +00:00
|
|
|
#include "t_task.h"
|
|
|
|
#include "t_arg.h"
|
2024-06-21 05:25:01 +00:00
|
|
|
#include "t_list.h"
|
2024-06-22 03:08:31 +00:00
|
|
|
#include "t_key.h"
|
2024-06-22 07:21:15 +00:00
|
|
|
#include "t_oled.h"
|
2024-08-29 08:46:54 +00:00
|
|
|
#include "t_tft.h"
|
2024-06-02 04:57:33 +00:00
|
|
|
#include "tool.h"
|
2024-06-22 14:51:58 +00:00
|
|
|
#include <windows.h>
|
2024-06-25 14:09:23 +00:00
|
|
|
#include <stdint.h>
|
2024-06-22 15:06:40 +00:00
|
|
|
|
2024-05-09 05:56:55 +00:00
|
|
|
int main() {
|
2024-06-02 04:57:33 +00:00
|
|
|
srand((unsigned) time(NULL));
|
2024-06-26 07:54:30 +00:00
|
|
|
// int i, j, k = 0;
|
|
|
|
// unsigned char incode[3] = "我"; // 要读出的汉字
|
|
|
|
// unsigned char qh, wh;
|
|
|
|
// long offset = 0;
|
|
|
|
//// 占两个字节, 取其区位号
|
|
|
|
// qh = incode[0] - 0xa0;//获得区码
|
|
|
|
// wh = incode[1] - 0xa0; //获得位码
|
|
|
|
// offset = (94 * (qh - 1) + (wh - 1)) * 24; /*得到偏移位置*/
|
|
|
|
//
|
|
|
|
// FILE *HZK;
|
|
|
|
// uint8_t temp, mat[24];
|
|
|
|
// if ((HZK = fopen("HZK12", "rb")) == NULL) {
|
|
|
|
// printf("Can't Open hzk16\n");
|
|
|
|
// exit(0);
|
|
|
|
// }
|
|
|
|
// fseek(HZK, offset, SEEK_SET);
|
|
|
|
// fread(mat, 24, 1, HZK);
|
|
|
|
//// Buf_Print("KZK12",mat,24,12);
|
|
|
|
// for (i = 0; i < 24; i++)
|
|
|
|
// printf("0x%02X, ", mat[i]);
|
2024-06-25 14:09:23 +00:00
|
|
|
|
|
|
|
// for (i = 0; i < 24; i++) {
|
|
|
|
// temp = mat[i];
|
|
|
|
// for (j = 0; j < 8; j++) //写入数据
|
|
|
|
// {
|
|
|
|
// if (temp & 0x80)printf("%c", '#');
|
|
|
|
// else printf("%c", '-');
|
|
|
|
// temp <<= 1;
|
|
|
|
// k++;
|
|
|
|
// if ((k ) == 12) {
|
|
|
|
// k = 0;
|
|
|
|
//// x++;
|
|
|
|
// printf("\n");
|
|
|
|
// break;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
2024-06-22 14:51:58 +00:00
|
|
|
// int i = 1;
|
|
|
|
// POUT((++i) + (++i));
|
|
|
|
//
|
|
|
|
// char str[] = "123.456";
|
|
|
|
// float result = Str2Float(str);
|
|
|
|
// printf("Result: %.3f\n", result);
|
|
|
|
// Test_RunTime("SPI", Test_spi);
|
|
|
|
// Test_RunTime("IIC", Test_iic);
|
|
|
|
// Test_RunTime("ArgPase", Test_argpase);
|
|
|
|
// Test_RunTime("List", Test_List);
|
|
|
|
// Test_RunTime("Key", Test_Key);
|
|
|
|
// Test_RunTime("Queue", Test_Queue);
|
2024-06-22 03:08:31 +00:00
|
|
|
// Test_RunTime("Task", Test_task);
|
2024-06-22 07:21:15 +00:00
|
|
|
Test_RunTime("OLED", Test_OLED);
|
2024-08-29 08:46:54 +00:00
|
|
|
// Test_RunTime("OLED", Test_tft);
|
2024-05-09 05:56:55 +00:00
|
|
|
return 0;
|
|
|
|
}
|