{"id":15905227,"url":"https://github.com/huangcongqing/microcontrollers-c","last_synced_at":"2025-04-02T20:45:45.461Z","repository":{"id":107569346,"uuid":"107413958","full_name":"HuangCongQing/Microcontrollers-C","owner":"HuangCongQing","description":"C framework for different microcontrollers用C语言写的单片机程序","archived":false,"fork":false,"pushed_at":"2020-02-12T10:32:25.000Z","size":5581,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T13:12:06.030Z","etag":null,"topics":["c","microcontroller"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HuangCongQing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-18T13:43:31.000Z","updated_at":"2020-02-12T10:32:27.000Z","dependencies_parsed_at":"2023-06-08T12:30:44.148Z","dependency_job_id":null,"html_url":"https://github.com/HuangCongQing/Microcontrollers-C","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"70c83ba0a9bd13ea5da8baf4f87977054cc62f68"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2FMicrocontrollers-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2FMicrocontrollers-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2FMicrocontrollers-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuangCongQing%2FMicrocontrollers-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuangCongQing","download_url":"https://codeload.github.com/HuangCongQing/Microcontrollers-C/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246892786,"owners_count":20850846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","microcontroller"],"created_at":"2024-10-06T13:01:15.687Z","updated_at":"2025-04-02T20:45:45.443Z","avatar_url":"https://github.com/HuangCongQing.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microcontrollers-C\nC framework for different microcontrollers用C语言写的单片机程序\n\n51单片机开发板视频：\n\n链接：https://pan.baidu.com/s/10fTTaxYWiL2rO-KiOEtndw \n提取码：toid \n复制这段内容后打开百度网盘手机App，操作更方便哦\n\n# 流水灯\n## sbit 变量名=地址值；  在给某个引脚取名的时候经常会用到。\n\n## typedef使用\n`typedef unsigned char u8;`\n`typedef unsigned int u16;（后面要加分号）`\n\n## define使用\n`define A P0(注意后面不用加分号)`\n\n# 蜂鸣器\n\n* I/O端口默认都是高电平\n\n## 数码管(静态，动态)\n\n* 位选，3-8译码器\n```\nsbit LSA=P2^2;\t\t\t //三八译码器\nsbit LSB=P2^3;\nsbit LSC=P2^4;\n```\n![image.png](http://upload-images.jianshu.io/upload_images/4340772-24f9fab2cb8ee7dc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n## 独立按键\n\n* P3^1，P是大写\n* 消除抖动 一般大约10ms\n\n\n### 相关图片\n![端口](http://upload-images.jianshu.io/upload_images/4340772-0a1fbf7f6d0c4741.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n![image.png](http://upload-images.jianshu.io/upload_images/4340772-9d468957c85d74d3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n![image.png](http://upload-images.jianshu.io/upload_images/4340772-ca19c6d8bfbbd442.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n![是否使用上拉电阻](http://upload-images.jianshu.io/upload_images/4340772-c41c185e5280073d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n![image.png](http://upload-images.jianshu.io/upload_images/4340772-c6726738b0838219.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n选取上拉电阻4.7K-10K \n![](http://upload-images.jianshu.io/upload_images/4340772-9bd298501c93df17.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangcongqing%2Fmicrocontrollers-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuangcongqing%2Fmicrocontrollers-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuangcongqing%2Fmicrocontrollers-c/lists"}