Git Product home page Git Product logo

mcs51_music's Introduction

51单片机音乐盒

mcs51系列单片机实现简单音乐盒。

环境要求

  • platformio 用于编译
  • mcs51系列单片机,或Proteus仿真软件

编译方法

python src/make_song.py > src/music.h
pio run

配置方式

src/config.h中包含单片机平台相关的设置,包括蜂鸣器引脚等;

src/make_song.py中包含乐曲的乐谱,修改后执行python src/make_song.py生成C语言代码,请手动替换src/song.c中的部分。

Keil相关问题

本项目使用sdcc作为编译器,不兼容Keil C,如要做适配请注意以下几个方面:

  • 头文件
  • 中断函数语法

mcs51_music's People

Contributors

fenisme avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.