i on't know anything about programming so i am trying some of the graphical software i am have trouble while trying to use makeblock in ardublock i get errors saying different things was not declared can anyone help.or tell me a more easier graphical software to use. thanks
i get errors saying different things was not declared can anyone help
Without seeing your code or you error messages, no.
or tell me a more easier graphical software to use.
Nothing replaces using the old gray matter.
okay here one of the errors.
Arduino: 1.5.5-r2 (Windows 7), Board: "Arduino Uno"
Using library SoftwareSerial in folder: C:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\SoftwareSerial (pre-1.5)
Using library Wire in folder: C:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\Wire (pre-1.5)
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=155 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\variants\standard -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\SoftwareSerial -IC:\Users\Shop\Documents\Arduino\hardware\arduino\avr\libraries\Wire C:\Users\Shop\AppData\Local\Temp\build3995423691032026541.tmp\sketch_feb16a.cpp -o C:\Users\Shop\AppData\Local\Temp\build3995423691032026541.tmp\sketch_feb16a.cpp.o
sketch_feb16a.ino:5: error: 'MeDCMotor' does not name a type
sketch_feb16a.ino:6: error: 'MeDCMotor' does not name a type
sketch_feb16a.ino: In function 'void loop()':
sketch_feb16a.ino:14: error: 'dcMotor1' was not declared in this scope
sketch_feb16a.ino:15: error: 'dcMotor2' was not declared in this scope
sketch_feb16a.ino:5: error: 'MeDCMotor' does not name a type
Where do YOU think this type is defined? Not in any of the header files you've included.
I have no experience of Ardublock and it may work well in some circumstances - but obviously not in yours.
The problem with that sort of GUI programming simplifier is that it is hundreds of times harder to figure out when it doesn't do what you expect. You end up wasting your time debugging Ardublock rather than your project. This is an interesting article The Law of Leaky Abstractions – Joel on Software
Learning to program the Arduino is not difficult if you are interested. There are tonnes of simple examples and tutorials. And your sketches will be much easier to debug.
...R
this is a sample that was posted with other samples on the ardublock website. so it sounds like i need to set down and learn to program in c++.
sounds like i need to set down and learn to program in c++.
I suggest you start with a goal of learning to understand and write small Arduino sketches. (It comes with many simple examples.)
That way you will absorb the use of simple C++ without taking on a large challenge like "learning to program in C++". As your knowledge evolves you can learn additional relevant bits of C++.
...R
xception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Editor.setText(Ljava/lang/String;)V
at com.ardublock.ArduBlockTool.didGenerate(ArduBlockTool.java:72)
at com.ardublock.core.Context.didGenerate(Context.java:271)
at com.ardublock.ui.listener.GenerateCodeButtonListener.actionPerformed(GenerateCodeButtonListener.java:171)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseE
mrraitz:
xception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: processing.app.Editor.setText(Ljava/lang/String;)V
at com.ardublock.ArduBlockTool.didGenerate(ArduBlockTool.java:72)
at com.ardublock.core.Context.didGenerate(Context.java:271)
at com.ardublock.ui.listener.GenerateCodeButtonListener.actionPerformed(GenerateCodeButtonListener.java:171)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseE
Was there some reason for resurrecting a thread that has been dormant for more than 2 and a half years?
Hello
you don't use the good version of arduino. Try arduino 1.6.5 and it all will be right