{"id":19942388,"url":"https://github.com/hungtcs-lab/8051-examples","last_synced_at":"2025-04-07T19:16:45.005Z","repository":{"id":41069586,"uuid":"135039889","full_name":"hungtcs-lab/8051-examples","owner":"hungtcs-lab","description":"基于SDCC编译器的8051单片机示例","archived":false,"fork":false,"pushed_at":"2021-09-11T07:50:09.000Z","size":14921,"stargazers_count":214,"open_issues_count":2,"forks_count":143,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-31T16:21:37.653Z","etag":null,"topics":["8051","mcs51","sdcc"],"latest_commit_sha":null,"homepage":"http://sdcc.sourceforge.net","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hungtcs-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-27T11:24:13.000Z","updated_at":"2025-03-07T13:24:41.000Z","dependencies_parsed_at":"2022-07-14T08:08:50.702Z","dependency_job_id":null,"html_url":"https://github.com/hungtcs-lab/8051-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs-lab%2F8051-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs-lab%2F8051-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs-lab%2F8051-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hungtcs-lab%2F8051-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hungtcs-lab","download_url":"https://codeload.github.com/hungtcs-lab/8051-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713258,"owners_count":20983683,"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":["8051","mcs51","sdcc"],"created_at":"2024-11-13T00:12:53.287Z","updated_at":"2025-04-07T19:16:44.959Z","avatar_url":"https://github.com/hungtcs-lab.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"51单片机示例\n====\n\n[![](./bilibili.svg)](https://space.bilibili.com/25043249)\n[![](./youtube.svg)](https://www.youtube.com/channel/UCmGaZOmnP5qx8bbdsPrBPtg)\n\n### 目录\n\u003cdetails\u003e\n  \u003csummary\u003e基础\u003c/summary\u003e\n  \u003cp\u003e\n\n  - [Blink](./Basic/Blink) _LED闪烁_\n  - [Timer](./Basic/Timer) _使用定时器实现LED闪烁_\n  \u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e通讯总线\u003c/summary\u003e\n  \u003cp\u003e\n\n  - [SPI](./Bus/SPI) _SPI总线协议_\n  - [IIC](./Bus/IIC) _IIC总线协议_\n  \u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e常用模块\u003c/summary\u003e\n  \u003cp\u003e\n\n  - [AT24C](./Modules/AT24C) _AT24Cxx是串行CMOS E2PROM_\n  - [DHT22](./Modules/DHT22) _温湿度传感器_\n  - [DS1302](./Modules/DS1302) _DS1302是由美国DALLAS公司推出的具有涓细电流充电能力的低功耗实时时钟芯片_\n  - [HC-SR04](./Modules/HC-SR04) _HC-SR04是一款超声测距模块_\n  - [IR-NEC](./Modules/IR-NEC) _解析NEC红外遥控协议_\n  - [DS18B20](./Modules/DS18B20) _DS18B20是常用的数字温度传感器_\n  - [NRF24L01](./Modules/NRF24L01) _nRF24L01是由NORDIC生产的工作在2.4GHz~2.5GHz的ISM 频段的单片无线收发器芯片_\n  - [OLED](./Modules/OLED) _0.96寸OLED模块，主控是SSD1306_\n  - [PCF8563](./Modules/PCF8563) _PCF8563是PHILIPS公司推出的一款工业级内含I2C总线接口功能的具有极低功耗的多功能时钟/日历芯片_\n  - [SG90](./Modules/SG90) _SG90舵机_\n  - [TCS34725](./Modules/TCS34725) _TCS34725顏色傳感器_\n  - [TM1637-4-Digit-Tube-Display](./Modules/TM1637-4-Digit-Tube-Display) _4位数码管显示模块_\n  \u003c/p\u003e\n\u003c/details\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e其他\u003c/summary\u003e\n  \u003cp\u003e\n\n  _暂未整理_\n  \u003c/p\u003e\n\u003c/details\u003e\n\n### 推荐工具链\n- [`sdcc`](http://sdcc.sourceforge.net/) _small device C compiler_\n- [`cutecom`](http://cutecom.sourceforge.net/) _GUI串口调试器_\n- [`stcflash`](https://github.com/laborer/stcflash) _A command line programmer for STC 8051 microcontroller_\n- [`Visual Studio Code`](https://code.visualstudio.com/)编辑器，推荐安装以下插件\n    - [C/C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) _language support for C/C++ to Visual Studio Code_\n    - [Doxygen Documentation Generator](https://marketplace.visualstudio.com/items?itemName=cschlosser.doxdocgen) _Doxygen Documentation generation on the fly by starting a Doxygen comment block and pressing enter_\n    - [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)\n\n### Tips\n- 如果你使用VSCode 和 `C/C++`插件，那么需要修改`.vscode/c_cpp_properties.json`文件中的`includePath`和`compilerPath`。\n- 如果你使用的sdcc版本大于3.6，那么需要修改`putchar`方法的定义。\n  \u003e Mar 1st, 2018: SDCC 3.7.0 released.\n\n  \u003e Changed putchar() prototype from void putchar(char) to int putchar(int) to improve standard-compliance and allow error reporting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs-lab%2F8051-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhungtcs-lab%2F8051-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhungtcs-lab%2F8051-examples/lists"}