TI中文支持网
TI专业的中文技术问题搜集分享网站

430也可以像Arduino一样玩耍

搜索免费的开发IDE时候发现的,之前看到过,没了解过,这次了解了一下。

或在

http://www.ti.com/tool/ENERGIA

下载

gaoyang9992006:

描述
Energia是一个开源和社区驱动的集成开发环境(IDE)和软件框架。Energia基于Wiring框架,提供了直观的编码环境以及强大的易于使用的功能性API和库框架,用于对微控制器进行编程。Energia支持许多TI处理器,主要是LaunchPad开发生态系统中可用的那些处理器。Energia是开源的,源代码可在github www.github.com/energia/energia中找到。

查看43oh.com论坛以获取Energia支持

特征
内置串行监控器/终端的简单易用的代码编辑器和编译器
具有直观的功能性API的强大框架,用于控制微控制器外围设备(即digitalRead,digitalWrite,Serial.print等)
支持各种TI嵌入式设备(MSP430,TM4C,CC3200,C2000等)
开源并托管在GitHub
还提供了更高级别的库(即Wi-Fi,以太网,显示器,传感器等)
需要IDE中的更多功能吗?将您的Energia项目无缝迁移到Code Composer Studio v6中,使开发人员可以利用LaunchPad套件的板载调试器。

gaoyang9992006:

回复 gaoyang9992006:

/*ButtonTurns on and off a light emitting diode(LED) connected to digitalpin 13, when pressing a pushbutton attached to pin 2.The circuit:* LED attached from pin 13 to ground* pushbutton attached to pin 2 from +3.3V* 10K resistor attached to pin 2 from ground* Note: on most Arduinos there is already an LED on the boardattached to pin 13.created 2005by DojoDave <http://www.0j0.org>modified 30 Aug 2011by Tom Igoemodified Apr 27 2012by Robert WesselsThis example code is in the public domain.www.arduino.cc/.../Button*/// constants won't change. They're used here to// set pin numbers:
const int buttonPin = PUSH2;// the number of the pushbutton pin
const int ledPin =GREEN_LED;// the number of the LED pin// variables will change:
int buttonState = 0;// variable for reading the pushbutton statusvoid setup() {// initialize the LED pin as an output:pinMode(ledPin, OUTPUT);// initialize the pushbutton pin as an input:pinMode(buttonPin, INPUT_PULLUP);}void loop(){// read the state of the pushbutton value:buttonState = digitalRead(buttonPin);// check if the pushbutton is pressed.// if it is, the buttonState is HIGH:if (buttonState == HIGH) {// turn LED on:digitalWrite(ledPin, HIGH);}else {// turn LED off:digitalWrite(ledPin, LOW);}
}例如这个按钮例子,只要会Arduino,甚至小白,看看几个例子就会了。

灰小子:

回复 gaoyang9992006:

感谢分享,Energia入门很简单。适合从arduino转到ti mcu的网友。

不过Energia支持的库还不是特别多,很多arduino上的库在Energia上不能直接使用,需要移植。

Susan Yang:

谢谢分享!

赞(0)
未经允许不得转载:TI中文支持网 » 430也可以像Arduino一样玩耍
分享到: 更多 (0)