- File -> New -> C Project
- In the Project name field, type your name as the name of your new project. Do not use spaces or special characters in the project name (for example, "test1").
- Click Finish when you are done.
- Project -> Properties
- Tool Settings -> SDCC Compiler -> Directories -> Include paths(-I) add C:\Program Files\SDCC\include\mcs51 add C:\Program Files\SDCC\include
- File -> New -> Source File -> main.c
/* * main.c * * Created on: 2008/9/22 * Author: enos_chiou */ #include <8051.h> #include char tmp[50]; void main(void) { sprintf(tmp, "hello world.\n"); } - Project -> Build Project
- burn the ihx file with ALL-11
- 如果要全部重新編譯,則使用 Project -> Clean... 就可以了。
html input radio 跟文字對齊方法
2 個月前
張貼留言