
Project_Digital_Frame_Picture
数码相框项目
zxy131072
嵌入式linux
展开
-
在Linux下libvga库的安装
下载地址:https://launchpad.net/ubuntu/+source/svgalib/1:1.4.3-30svgalib_1.4.3.orig.tar.gzsvgalib_1.4.3-30.debian.tar.gzsvgalib_1.4.3-30.dsc1、安装前的打补丁tar vxf svgalib_1.4.3.orig.tar.gztar vxf svgalib_1.4.3-30.debian.tar.gzcd svgalib-1.4.3.orig/for fil原创 2020-09-04 15:36:53 · 473 阅读 · 2 评论 -
Linux下传参函数getopt使用
int getopt(int argc, char* const argv[ ], const char *optstring );功能: 解析命令行参数,参数: argc和argv分别代表参数个数和内容,跟main()函数里的命令行参数一样 optstring: 为选项字符串,告知getopt可以处理哪个选项以及哪个选项需要参数,如果选项字符串里的字母后接着冒号:“:”,则表示还有相关的参数,全域变量optarg即会指向此额外参数,如果在处理期间遇到了不符合optstring指定的其他选项原创 2020-09-04 09:19:43 · 189 阅读 · 0 评论 -
freetype库参考使用实例
/* example1.c *//* *//* This small program shows how to print a rotated string with the *//* FreeType 2 library.原创 2020-09-01 23:08:40 · 1063 阅读 · 0 评论 -
使用freetype库在LCD显示内容
#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <linux/fb.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <math.h>#include <wcha原创 2020-09-01 23:03:49 · 275 阅读 · 0 评论 -
使用freetype库在LCD使文字旋转任意角度
#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <linux/fb.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <math.h>#include <wcha原创 2020-09-01 22:54:51 · 1087 阅读 · 0 评论 -
使用freetype库在LCD中间位置显示多行内容
#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <linux/fb.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <math.h>#include <wcha原创 2020-09-01 22:45:00 · 244 阅读 · 0 评论 -
使用freetype库在LCD显示多行内容
#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <linux/fb.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <math.h>#include <wcha原创 2020-09-01 22:39:46 · 206 阅读 · 0 评论 -
使用freetype库在LCD显示一行内容
#include <sys/mman.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <linux/fb.h>#include <fcntl.h>#include <stdio.h>#include <string.h>#include <math.h>#include <wcha原创 2020-09-01 22:32:29 · 254 阅读 · 0 评论 -
项目1中的指针操作
#include <stdio.h>typedef struct { int a; int b;}T_AB;int main(int argc, const char *argv[]){ char c; int a; T_AB tTest; int *p; int **pp; /* 1.指针指向一个整型变量 */ p = &a; printf("p = 0x%x, a'addr = 0x%x\n", p, &a);原创 2020-09-01 21:57:21 · 128 阅读 · 0 评论 -
字符编码方式对ELF显示的影响
Linux默认使用的是UTF-8格式文件,所以有时候将Linux下编辑保存后的文件在Windows下查看会发现有乱码。在一些对编码格式有要求的场合,一定要注意使用正确的编码方式,比如字符叠加等场合,这个坑我是真的踩过的。使用UTF-8格式编码的源码文件,默认保存为UTF-8格式使用gcc编译,默认保存的格式为UTF-8。#include <stdio.h>int main(int argc, const char *argv[]){ int i = 0; unsigned c原创 2020-08-25 08:51:58 · 484 阅读 · 0 评论 -
rgb888与rgb565互转实现
#include <unistd.h>#include <stdio.h>#include <fcntl.h>#include <linux/fb.h>#include <sys/mman.h>#include "./global_screen.h"struct fb_var_screeninfo vinfo;unsigned int *fbp565;unsigned int RED_COLOR888;unsigned int原创 2020-08-14 11:08:04 · 1049 阅读 · 1 评论 -
LCD画水平线和垂直线操作
#include <string.h>#include <fcntl.h>#include <linux/fb.h>#include <sys/mman.h>#define SCREEN_BUFF_WIDTH 480#define SCREEN_BUFF_HEIGHT 272extern unsigned char * g_screen_buffer_ptr;extern int fd_fb;extern long sc原创 2020-08-13 23:04:44 · 487 阅读 · 0 评论 -
001_嵌入式Linux项目——数码相框,视频内容
该项目为韦东山老师的第三期项目中的第一个数码相框项目,本人已经购买此套视频,该套博客的目的是记录自己在项目学习中遇到的种种问题,对自己是一个进步,对他人是一个分享,欢迎交流学习。视频内容和时长第1课第1节_数码相框之系统框架.mp4 ---------------------》》35:52第1课第2.1节_数码相框_字符的编码方式_P.mp4 -------------------...原创 2020-04-24 16:59:09 · 780 阅读 · 0 评论