Arduino编程故障

时间:2015-03-18 20:04:01

标签: windows arduino

我正在学习如何使用Arduino,当然我尝试运行的东西也行不通。我确实遇到了驱动程序的问题,我已经解决了,我已经重新安装了Arduino软件。我仍然无法使其正常工作。我的电脑识别出Arduino已连接。

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at processing.app.EditorStatus.progress(EditorStatus.java:191)
at processing.app.Editor.handleExport(Editor.java:2415)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:349)
at java.awt.Component.processMouseEvent(Component.java:6522)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2739)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:724)
at java.awt.EventQueue$4.run(EventQueue.java:722)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

这是我想要运行的内容。我班上有其他人看我的代码,甚至他说这是正确的。我不确定我做错了什么,我真的需要让它在课堂上工作。我现在非常沮丧。

int ledPin = 13;
int Dtime = 100;
void setup() {
pinMode(ledPin, OUTPUT);  // put your setup code here, to run once:

}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(Dtime);
  digitalWrite(ledPin, LOW);
  delay(Dtime);
  // put your main code here, to run repeatedly:

}

1 个答案:

答案 0 :(得分:0)

你需要获得最新版本的java。更新您的JRE,从here

下载最新版本