Commit Graph

1535 Commits

Author SHA1 Message Date
David A. Mellis 0b09a8edd9 Adding custom error messages for some 1.0 changes.
Also, changing the logic of the code a bit to correctly place errors even when substituting custom error messages.
2011-09-08 18:10:29 -04:00
David A. Mellis c9d4630d2b Fallback on system avrdude if Arduino avrdude isn't present (Linux). 2011-09-07 20:00:06 +02:00
David A. Mellis 551b8e85ac Don't use the low-res icon on Mac OS X.
http://code.google.com/p/arduino/issues/detail?id=612
2011-08-31 15:29:54 -04:00
Cristian Maglie 15b28b415d Mouse change cursor shape when is moved over a URL. 2011-08-30 23:22:59 +02:00
David A. Mellis 4553cee443 Fixes to compile under Java 1.5 (on my Linux machine). 2011-08-27 00:01:08 +02:00
David Mellis bd6c90e5b8 Setting Arduino icon for serial monitor window.
http://code.google.com/p/arduino/issues/detail?id=564
2011-08-24 11:57:58 -04:00
David A. Mellis 0020105283 Also updating serial port display from "Serial port not found" dialog. 2011-08-24 11:55:24 -04:00
David A. Mellis 91a94cbe7e Removing "board: " prefix from line status bar. 2011-08-24 11:50:02 -04:00
David A. Mellis 365d4acf6e Merge remote-tracking branch 'cmaglie/port-on-statusbar' into new-extension 2011-08-24 11:46:18 -04:00
David A. Mellis d501a9ba0e Single-click to open a URL / link (rather than double-click). 2011-08-24 11:35:12 -04:00
David A. Mellis 8ea35d4e6d Merge remote-tracking branch 'cmaglie/schematics-view' into new-extension 2011-08-24 11:32:19 -04:00
Cristian Maglie 71dd5dd534 Selected board and serial port on status bar. 2011-08-24 16:53:57 +02:00
Cristian Maglie 0fca78cc7e Fixed position of the Label of command buttons. 2011-08-24 11:36:14 +02:00
Cristian Maglie 88794ec1d6 Double-click now opens URL (right-click still shows "Open URL" in popup
menù).
2011-08-24 10:42:58 +02:00
David A. Mellis d00f0949ed Renaming pins/ directory to the more generic variants/
http://code.google.com/p/arduino/issues/detail?id=588
2011-08-23 17:07:39 -04:00
Cristian Maglie 303b2e5103 Removed arrow. 2011-08-23 19:29:36 +02:00
Cristian Maglie f233861a4c URL right-clickable and underlined. 2011-08-23 19:21:42 +02:00
Cristian Maglie 6886910f3d Serial button on the right. 2011-08-22 18:24:13 +02:00
Cristian Maglie d60c42e5ed Clickable url are now searched with a good regexp and highlighted. 2011-08-19 22:32:34 +02:00
Cristian Maglie a6c8753a80 Schematic URL. Actually tag is "@schematics <url>" that should be put
inside code comments.
2011-08-19 19:51:02 +02:00
David A. Mellis ac3f093b76 Revert "Added Schematic view (from wiring)."
This reverts commit ccb318c2ab.
2011-08-18 14:54:42 -04:00
David A. Mellis fc90fa7d9d Showing progress during compilation as well as upload. 2011-08-16 17:51:19 -04:00
Cristian Maglie ccb318c2ab Added Schematic view (from wiring). 2011-08-16 20:38:23 +02:00
Cristian Maglie 42943b4de3 Added progressbar (from wiring) 2011-08-16 19:52:31 +02:00
David A. Mellis d9dcc66232 [sam] fixing compilation in IDE (changing some #includes). 2011-07-17 09:50:36 -04:00
ricklon a6646ca08c fixed an issue, -Wl,--gc-sections needed to have a comma. 2011-06-29 20:21:35 -04:00
David A. Mellis 05d622f3ac Adapting Rick's platform work to other platform changes. 2011-06-25 12:51:56 -04:00
ricklon dacfa86223 Addtional debuggin. Trying to find the pins compile issue. 2011-06-22 21:20:45 -06:00
ricklon 43a11be3c9 Cleaned up some of the code. Need to focus getting the 1.0 code compilation changes double checked. 2011-06-18 23:44:32 -04:00
ricklon aa01546b55 Switched to a nonconflicting delimeter |. Compile process is working. Need to make sure that it matches 1.0 process exactly. 2011-06-17 22:12:21 -04:00
ricklon 67c9dfc667 A bit of cleanup. Delimeter not figured out yet. 2011-06-17 00:54:58 -04:00
ricklon a57f35fb51 Fixed the missing line for messageformat args. 2011-06-16 23:17:08 -04:00
ricklon 72c4404c6d Fixed compile process up to step 4. asyncExec cannot have null argmuments from the array. 2011-06-16 20:36:39 -04:00
ricklon b0556c2e74 Changed :: to , for platforms.txt. Also, changes to compile process to support execAsynchronously changed to Stringp[] 2011-06-15 23:04:38 -04:00
ricklon 5e0ac9c720 Converting the step by step functions to integrate with standard Arduino execAsynchronously(array) 2011-06-13 22:14:28 -04:00
ricklon 7cf5b7263f Fixed issues about invalid targets. Menu selection of boards and libraries are now functional. 2011-06-13 21:23:59 -04:00
ricklon fa268259a0 Majority of non Compiler.java changes made. 2011-06-13 14:14:22 -04:00
ricklon 41600a22eb Added initial changes to the Compiler.java file. 2011-06-06 22:34:12 -04:00
David A. Mellis 43cfc87f17 Updating version number to 0100 to allow checking for Arduino 1.0.
http://code.google.com/p/arduino/issues/detail?id=453
2011-03-26 16:41:30 -04:00
David A. Mellis 63d3190cbb Not re-opening .pde sketches left open from a pre-1.0 version of Arduino.
That way, we can wait to rename them until the user explicitly opens them in Arduino 1.0.
2011-03-26 16:23:29 -04:00
David A. Mellis 19597b1d0b Factoring pin definitions out of the core.
That is, there's now a pins/ directory in a platform, which includes multiple directories, each of which has its own pins_arduino.h.  The boards.txt gets a new preferences, <BOARD>.build.pins, whose values is a sub-directory of the pins/ directory (possibly with a "platform:" prefix).  That sub-directory is then placed in the include path during compilation.
2011-03-04 21:05:05 -05:00
David A. Mellis d05e4021d0 Renamed WProgram.h to Arduino.h. 2011-03-01 19:52:13 -05:00
David A. Mellis 97abbd7a31 Removing BYTE keyword (use Serial.write() instead). 2011-02-26 13:58:03 -05:00
David A. Mellis 12d4552c66 Merge branch 'master' into new-extension
Conflicts:
	app/src/processing/app/Editor.java
2010-12-25 18:59:59 -06:00
David Mellis 6fa74cf711 Serial prompt fixes.
Not showing the serial prompt if no serial ports are available.
Showing the serial prompt for verbose upload, too.
2010-12-23 19:28:39 -05:00
David A. Mellis 3625a1001e Adding preferences for verbose compilation and upload. 2010-12-20 16:49:14 -05:00
David A. Mellis f1146d80a5 Adding upload using programmer options (instead of verbose). 2010-12-20 14:50:18 -05:00
David A. Mellis 8523ab1ac7 If no upload protocol is specified for a board, use selected programmer instead.
Eliminates use of the upload.using preferences to specify a particular programmer.  Select the programmer from the menu instead.
2010-12-17 20:33:20 -05:00
David A. Mellis 15d07fa036 Splitting up programmer selection menu and burn bootloader menu item. 2010-12-17 19:58:40 -05:00
David A. Mellis 3e31777fec Merge branch 'master' into new-extension 2010-12-17 09:12:36 -05:00
David A. Mellis 920212ee05 Revert "added toInt() function to WString".
This reverts commit 448222e4b6.
2010-11-29 15:14:10 -05:00
Tom Igoe 448222e4b6 added toInt() function to WString 2010-11-29 11:31:00 -05:00
David A. Mellis 37e6e7e86b Changing version number to 0022. 2010-11-28 14:16:10 -06:00
David A. Mellis a142a2564d Enabling debugging for compilation of the app. 2010-11-27 11:54:07 -06:00
David A. Mellis 6750e679af Building sketch first (so errors appear faster).
http://code.google.com/p/arduino/issues/detail?id=393
2010-11-27 11:39:42 -06:00
David A. Mellis 5d9602a28a Showing dialog when serial port not found on upload. 2010-11-24 14:03:21 -05:00
David A. Mellis 06d3d85143 Handling < > & and unicode in copy to html.
http://code.google.com/p/arduino/issues/detail?id=29
2010-11-16 22:51:24 -05:00
David A. Mellis dc3b815c29 Merge branch 'master' into new-extension 2010-11-10 12:15:28 -05:00
David A. Mellis 24e057a343 Setting Arduino icon. 2010-11-10 11:46:52 -05:00
David A. Mellis 299b779ca2 Updating colors, toolbar icon, and about image. 2010-11-10 10:43:46 -05:00
David A. Mellis 5e028ea09d Saving and restoring serial monitor line ending. 2010-11-07 22:38:58 -05:00
David A. Mellis 1cac73c254 Saving and restoring location of the serial monitor. 2010-11-07 22:25:02 -05:00
David Mellis 1fbffaf7be Changing Windows file association code from .pde to .ino.
It doesn't seem to work properly on my Windows Vista machine, but neither does the .pde association for Processing.
2010-11-06 16:38:23 -04:00
David A. Mellis e2213d4721 Changing extension from .pde to .ino.
Renames all .pde files in a sketch to .ino upon opening.  Prompts the user the first time this happens; if the rename is cancelled, the sketch is not opened and the user will be prompted next time a sketch with a .pde file is opened.  Otherwise, renames files in all future opened sketches automatically (without prompting).  Still allows for opening of .pde files and includes them in the sketchbook and examples menus.

Still need to check the file association code.

http://code.google.com/p/arduino/issues/detail?id=13
2010-11-06 15:41:01 -04:00
David A. Mellis fa4d058297 Reapplying Christian's regex patch.
Revert "Revert "Removed dependencies from regex library oro.jar""

This reverts commit ed7795ef8d.
2010-10-03 19:44:28 -04:00
David A. Mellis 4c26e071c8 Updating version to 0021. 2010-10-02 14:03:50 -04:00
David A. Mellis 750c860a0d RXTXcomm.jar with only RXTXCommDriver.class updated (to add /dev/ttyACM* on Linux). 2010-10-02 18:55:16 +02:00
David A. Mellis d09edea5e7 Recompiled rxtx to include /dev/ttyACM* on Linux. 2010-10-02 18:18:45 +02:00
David A. Mellis ed7795ef8d Revert "Removed dependencies from regex library oro.jar"
This reverts commit 2b4391052c.
2010-10-02 17:19:53 +02:00
Cristian Maglie 2b4391052c Removed dependencies from regex library oro.jar 2010-10-01 19:41:36 +02:00
David A. Mellis 5c22a1e970 Updating version to 0020. 2010-09-24 16:29:07 -04:00
David A. Mellis 5e2f82b742 Updating SPI library error message and revisions.txt for final 0019 release. 2010-09-03 23:12:12 +00:00
David A. Mellis e3856766c6 Creating a custom error message for missing SPI.h (because we changed the Ethernet library to rely on it). issue #337 2010-08-28 09:33:37 +00:00
David A. Mellis bc8e5c3dcf Updating / reverting to the previous / future Processing new window behavior: toolbar opens things in the existing window, menus in a new window. 2010-08-15 19:12:00 +00:00
David A. Mellis c5e8c3e4bd Toggling RTS as well as DTR for auto-reset. 2010-08-10 01:32:28 +00:00
David A. Mellis 78e093b482 Moving line endings selection combo-box. 2010-08-02 18:11:49 +00:00
David A. Mellis 6f96ce0df2 Adding drop-down for selecting line ending to serial monitor (issue #119). Also switching subpanes from BorderLayout to BoxLayout. 2010-07-11 15:31:34 +00:00
David A. Mellis 03a62f38d2 Allowing third-party hardware platforms to reference programmers defined in other platforms (issue #283). 2010-07-10 21:29:32 +00:00
David A. Mellis 39610d1325 Skipping all hidden files (those starting with a dot - ".") when compiling (issue #209). 2010-06-13 19:25:33 +00:00
David A. Mellis 9fe672fc63 Providing error messages when no board is selected. 2010-06-12 18:32:32 +00:00
David A. Mellis 0979ed050b Updating version number to 0019.
Some revisions.
2010-05-29 17:01:43 +00:00
David A. Mellis 8bdde5d683 Adding automatically scoll option to serial monitor (pause / continue).
Changing how errors are displayed when the serial monitor can't be opened.
2010-05-29 17:00:08 +00:00
David A. Mellis 6efe13c8a1 Fixing issue with tab menu and tabs with the same base name but different extensions (issue 191). 2010-05-16 04:43:03 +00:00
David A. Mellis 775c4d272c Only check for conflict with an existing C++ file when renaming the sketch, not when adding a new file. 2010-05-16 04:09:21 +00:00
David A. Mellis c4760d8ae7 Moving to ant-based build system from Processing. Mac OS X seems to work (for the moment). 2010-05-08 21:47:19 +00:00
David A. Mellis 5d54fbf70b Removing some Processing stuff that we don't need.
Moving the Arduino Fio up in the boards menu.
2010-05-08 20:37:54 +00:00
David A. Mellis e5d56a1e59 Redoing the error message parsing / handling. Now using Sketch.placeException() to map back to the sketch code files and line numbers. Showing more of the actual output of avr-gcc / avr-g++. 2010-05-08 20:06:31 +00:00
David A. Mellis 34579ae440 Initial sync with Processing 6406. Compiles and runs (on Mac OS X) but probably very buggy. 2010-04-21 01:58:57 +00:00
David A. Mellis 0648283425 faq -> FAQ in Base.java (matching case of file name).
Adding date of 0018 release to readme.
2010-02-21 12:36:58 +00:00
David A. Mellis a5b9d31134 Stopping you from renaming the main / first sketch file (.pde) if it contains a .cpp file with the new name. 2010-01-28 21:19:53 +00:00
David A. Mellis 2b7862a7d1 Pointing the update check at the Arduino server (instead of processing.org). 2010-01-10 20:14:59 +00:00
David A. Mellis 9a5507fd07 Saving immediately when replacing a sketch with another in the same editor. Should fix bug: http://code.google.com/p/arduino/issues/detail?id=88 2009-12-26 15:42:30 +00:00
David A. Mellis a2ee999135 Allowing multiples files in a sketch with the same name but different extensions. Not, however, allowing a .cpp file with the same name as the sketch, because they would conflict during the build process. 2009-12-24 21:35:38 +00:00
David A. Mellis 2a3a8b1c4f Moving sketch compilation during upload from applet/ sub-directory to a temporary folder. 2009-12-23 00:00:57 +00:00
David A. Mellis d2a38e4b5a Improving third-party hardware support:
- moving back to multple cores per platform
- using target instead of platform
- moving per-board and per-programmer preferences out of Preferences.java and into a new Target class
- adding a new "target" preference
- support for platform:value values in board preferences for bootloader path and core
- XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-21 23:23:43 +00:00
David A. Mellis 8720addcba Got bootloader burning working.
Wrapped some long lines.
2009-11-08 20:51:41 +00:00
David A. Mellis e5b5f25476 Third-party cores seems to sort of work now, but burning bootloaders is probably broken.
Need to decide on the format for the boards.txt file.
2009-11-07 18:56:45 +00:00
David A. Mellis 3075c8e4fd Moving libraries out of arduino platform / core directory and to top-level. 2009-11-07 17:54:56 +00:00
David A. Mellis 294abd0419 No longer mangling microcontroller names before passing them to avrdude, as it seems to support the same ones as avr-gcc now. 2009-10-23 23:28:35 +00:00
David A. Mellis 6a15e01ff8 Passing the ARDUINO constant from the IDE to avr-gcc as a command line argument (so I don't forget to update the version in the .h file). 2009-10-23 23:04:03 +00:00
David A. Mellis 2e26a2d994 Syncing with Processing 1.0.9 (revision 5766). 2009-10-22 00:56:16 +00:00
David A. Mellis 7f58e2213e Adding support for setting baud rate to use with a programmer. 2009-10-22 00:55:07 +00:00
David A. Mellis e814744504 Enabling the Sketchbook and Examples menu on Mac OS X with native (screen) menu bar. Processing has these disabled because they often cause problems, but they seem to be working at the moment, so I'm leaving them in. 2009-09-26 16:48:46 +00:00
David A. Mellis 048143f3d5 Adding support for .S files in libraries and cores. Patches from René Bohne. 2009-09-25 19:31:01 +00:00
David A. Mellis f2010ebd2b Fixing whitespace in Compiler.java. 2009-09-25 19:05:09 +00:00
David A. Mellis 3dc7fc0781 Syncing with Processing 1.0.7 (5692); needs testing.
Also, the Sketchbook and Examples menus are currently disabled on the Mac to work-around a bug in Apple's implementation of Java.  I think this bug may have been solved, so I should try re-enabling the menus and see what happens (on 10.4 and 10.5 and 10.6).  Also, I may still need to update the jre / jdk on Linux.
2009-09-24 03:16:00 +00:00
David A. Mellis 240607a4a6 Holding shift when pressing run or upload buttons give verbose output.
The upload.verbose and build.verbose preferences are still respected.

You don't get verbose output with Command-Shift-R or Command-Shift-U, unlike Processing in which the shift modifier switches from Run to Present.  Mostly this is because I didn't think verbose output deserved its own menu items, and that's how Processing implements the other shortcut.

Holding shift while pressing upload doesn't show the compilation command lines.  This matches the functionality of the upload.verbose preference, but may imply that the upload button doesn't also compile the code.

Also, in Snow Leopard, the temp directory is in some crazy folder in /var.  Luckily, everything still seems to work okay.
2009-09-23 23:40:59 +00:00
David A. Mellis 3febe7ce42 Adding a serial monitor menu item and keyboard shortcut (control-shift-m / command-shift-m). 2009-09-23 22:59:55 +00:00
David A. Mellis 8f4b24492f Updating version to 0018. 2009-09-13 17:56:43 +00:00
David A. Mellis 018ff13d8b Moving setting of Linux look and feel from linux/Platform.java to arduino script. 2009-08-11 23:05:18 +00:00
David A. Mellis 777e7cd30d Removing check for JDK (as opposed to JRE) in Base.java. This is because on Linux, it's tricky to automatically include tools.jar in the classpath (which is necessary for the Processing code to think that the JDK is present). (For example, Ubuntu doesn't set the JAVA_HOME variable.) As far as I know, Arduino doesn't actually need the JDK, but I could be wrong. 2009-08-03 20:53:31 +00:00
David A. Mellis a0d608e946 Fixing default sketchbook path (Processing -> Arduino). Not setting the Windows window icon to the Processing icon (it stays as the Java icon instead). 2009-07-14 22:24:20 +00:00
David A. Mellis 59a85bfe59 (Re-)implementing syntax highlighting support for library keywords. 2009-07-12 00:40:02 +00:00
David A. Mellis 15cff82214 Removing unused preferences. Fixing upload when not deleting applet/ directory. Treating examples in the sketchbook/libraries folder as read-only. 2009-06-18 19:22:43 +00:00
David A. Mellis bb9525ad24 Disabling the serial monitor during uploads. 2009-06-18 18:29:53 +00:00
David A. Mellis 250bce0f34 Adding keyboard shortcut (command or ctrl w) for closing the serial monitor window. 2009-06-16 20:21:39 +00:00
David A. Mellis 672ad5648e Allowing (and fixing) uploading of unsaved sketches. 2009-06-16 19:49:28 +00:00
David A. Mellis e88592771e Removing attempt to flush the incoming serial data when opening the port, since it didn't seem to work. 2009-06-13 21:28:46 +00:00
David A. Mellis 4b80afbca1 Going back to one serial monitor at a time, but closing it when you pick a new serial port from the Tools > Serial Port menu (and when you upload). 2009-06-13 21:28:15 +00:00
David A. Mellis b81a8f0309 Now supporting multiple serial monitors open at once (one for each port). 2009-06-13 21:05:15 +00:00
David A. Mellis 678e09896f Moving serial error messages into the serial monitor (out of the editor). 2009-06-13 20:42:43 +00:00
David A. Mellis a258042deb Adding a basic serial monitor. 2009-06-13 20:26:21 +00:00
David A. Mellis 8823b5ba79 Ignoring lines of error messages with "In file included from" in them. 2009-06-13 12:31:54 +00:00
David A. Mellis cdf0095e70 Modifying compilation for libraries:
- now compiled to their own sub-directory of the build directory
 - only can see #include's in their own utility/ folders
and the core (building core.a again).

Also changed the APIs of the compilation functions somewhat (e.g. execAsynchronously no longer returns anything; it just throws a RunnerException on any error).

Still need to better handle errors in #include files; right now, the error is interpreted as being at the line where the #include happens, not within the header file.
2009-06-13 11:41:16 +00:00
David A. Mellis cbcbc5c4d5 Removing extra nested "examples" menu. 2009-06-07 11:28:53 +00:00
David A. Mellis 8b6fb36ace Integrating the Sizer. 2009-06-01 20:10:05 +00:00
David A. Mellis e2952cdc77 Enabling / integrating bootloader burning. (Should be tested with a serial AVRISP and a parallel programmer) 2009-06-01 19:27:21 +00:00
David A. Mellis 5f26d058e6 Fixing help menu links, integrating copy as html, and modifying EditorToolbar labels (Run -> Verify, Export -> Upload). 2009-06-01 19:02:46 +00:00
David A. Mellis d589209e92 Adding examples to the toolbar's open menu (in addition to the examples menu). 2009-06-01 18:21:13 +00:00
David A. Mellis 89139d1f77 More cleanup:
- fixing import library
- changing compilation to only look for source files in the root and utility/ folders of a library; also adding utility/ sub-folder to the include path
- removing export to application
- renaming run to verify / compile and export to upload
2009-06-01 18:11:25 +00:00
David A. Mellis df4f1629c4 Making things more Arduino-like (cont...) 2009-06-01 17:10:56 +00:00
David A. Mellis 14778514ae Re-configured compilation and integrated uploading. Added the Board and Serial port menus: these are currently shared across editor windows.
No longer using Library and LibraryManager.  Instead the compiler finds the .c and .cpp files in the library paths (gotten from the Sketch via the Preprocessor and the Base's library table).  This breaks libraries that have header files in sub-directories but use #include with no path names (as sub-directories of library directories are not on the include path).  It will also cause problems with .c or .cpp files with the same name in different library utility folders or in a sketch or the target (core).

Now deriving the Target correctly from the selected item in the board menu.
2009-06-01 15:14:05 +00:00
David A. Mellis ae98fbfee8 Fixing some compilations bugs:
- including .cpp and .c files from sketch
 - adjusting error line highlighted according to the number of function prototypes generated
 - taking into account preprocessor offset on the first .pde file
2009-06-01 09:28:41 +00:00
David A. Mellis 2fa8deb92d First integration of the Arduino code in Processing 5503: PreProcessor and Compiler have been integrated with changes to the Sketch.
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch).
Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over.
Removing some of the antlr stuff.  
Disabling the Commander (command-line execution) for now.
Added Library, LibraryManager, and Target.
Added support for prefixed preferences (e.g. for boards and programmers).
2009-06-01 08:32:11 +00:00
David A. Mellis 22ed6cdb73 Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00