Commit Graph

1928 Commits

Author SHA1 Message Date
gohai
5ff162e20a IO: Invert OLED example
This makes bright pixels be illuminated on the display.
2017-04-05 14:52:22 +02:00
gohai
1df221200b IO: Update I2CScreen example
Hardcode i2c interface, add background, fix indentation
2017-04-03 18:18:46 +02:00
gohai
fb4b054bbe IO: Compile native code with -ffast-math 2017-03-13 20:31:57 +01:00
gohai
7c49c34cce IO: Fix SPI.close() 2017-02-26 16:40:27 +01:00
gohai
9025ecee4e IO: Remove superfluous super in examples 2017-02-26 15:26:32 +01:00
gohai
82e0c8764d IO: Make waitFor throw an exception in case of a timeout
Previously, it returned a boolean indicating success. But the code on the caller-side will be nicer to read with exceptions.
2017-02-26 15:26:32 +01:00
gohai
ad6986caef IO: Introduce a variant of waitFor that doesn't take a timeout
This simplifies the semantic of the variant with three arguments, since we now don't have the "-1 means wait forever" case any longer.
2017-02-26 15:26:25 +01:00
gohai
5b4be31a28 IO: Remove the RPI (Raspberry Pi) class
This provided constants that translated from the physical header pin numbers to GPIO lines. Instead, we (and the majority of other Pi related documentation out there) now just use GPIO numbers exclusively.

The class hasn't been used in examples since a few versions, and also wasn't ever properly documented in the reference, so unlikely that many people will notice.
2017-02-22 16:54:03 +01:00
gohai
45fe7a8d73 IO: Rename the (publicly listed) waitForInterrupt function to waitFor
This function is used like this:
GPIO.waitFor(pin number, rising/falling/change, timeout or -1)

While it's using an interrupt internally, in the way it is used it doesn't relate to the interrupt functions (attachInterrupt, etc) at all. To prevent confusion, rename it to waitFor. (Another possible name would be waitForPin.)
2017-02-22 16:46:56 +01:00
Ben Fry
8414512af9 stumbled across spacing issues 2017-02-15 17:55:57 -05:00
Jakub Valtar
ed17f6d21f Fix preprocessing of code with double backslash in string or char literal
Fixes #4903
2017-02-15 15:03:03 +01:00
Ben Fry
df15bcefe5 Merge pull request #4707 from rzats/feature-4668
PDEX: Add 'Jump to Declaration' to right-click menu (#4668)
2017-02-13 14:16:23 -05:00
Ben Fry
e650d4104d deal with a handful of warnings 2017-02-03 11:58:22 -05:00
Ben Fry
022c27633c deal with a handful of warnings 2017-01-29 10:57:44 -05:00
Ben Fry
a43ec78579 Merge pull request #4806 from joelmoniz/bugfix-debug-newline
Replace keyChar with keyCode to prevent new line error when debugging
2017-01-29 10:50:12 -05:00
Jakub Valtar
d8e8619f6e Fix restarting sketch in Debug mode when Run is pressed
Disconnect event of the old VM would arrive after the new VM was
created, closing it instantly and leaving user without a running sketch.
2017-01-23 03:09:51 +01:00
Jakub Valtar
95ebcdb825 Add proper synchronization for sketch launching and closing
Pressing Run button twice launched two sketch windows, but only one of
them could be closed by Stop button. Pressing Stop had effect only after
sketch VM was launched.

Both of these issues are now fixed and buttons can handle a
frustration-relieving session of aggressive clicking, leaving one sketch
window if Run was the last button pressed or no window if Stop was the
last button pressed.
2017-01-23 03:07:42 +01:00
Jakub Valtar
28052c2b39 Make run button behave
When clicking run button while a sketch is running, it will be activated
again when the sketch is restarted. Previously it got deactivated by the
old sketch runner, because it was quitting after the new sketch runner
started.
2017-01-22 23:24:32 +01:00
Jakub Valtar
916e38b98d Small threading fixes for run/present/tweak 2017-01-21 19:03:12 +01:00
Joel Moniz
c81fc0ac16 Replace keyChar with keyCode to prevent new line error when debugging 2017-01-01 21:02:51 +05:30
Jakub Valtar
0a02898ff1 Don't cache search classpath, only build it when looking for a class
Fixes #4748

Libraries imported in opened sketches will be still locked by latest
preprocessed CompilationUnit. Otherwise we would have to copy library
jars somewhere else so they can be available to CompilationUnit while
Contribution Manager updates original unlocked jars.
2016-12-18 00:36:22 +01:00
Jakub Valtar
b72a39564b Detect missing braces in tabs, ignore other problems until fixed 2016-12-17 20:56:33 +01:00
Jakub Valtar
dd31bf2fbe Clean up JavaProblem, remove IProblem field 2016-12-16 04:48:11 +01:00
Jakub Valtar
5f464e9558 PDEX: simplify import suggestion handling 2016-12-16 04:45:42 +01:00
Jakub Valtar
d3a6e7ec5b Fix ErrorMessageSimplifier indents (no functional changes) 2016-12-16 04:45:42 +01:00
Jakub Valtar
508132dff1 Clean up ErrorMessageSimplifier
Remove weird unused thread-spawning constructor
Accept IProblem instead of whole JavaProblem
Move fallback process() from JavaProblem to EMSimplifier as a default
case
Add debug switch and move debug logging into if blocks
2016-12-16 04:45:42 +01:00
Jakub Valtar
7b3719ad8f Fix hex color regex
Same problem as with type constructors #4744

Fixes #4752
2016-11-24 22:16:40 +01:00
Jakub Valtar
ab4eb7353f Fix nested type constructors raising error
Replace non-capturing groups by positive lookahead and lookbehind,
because they don't consume the source String and allow for first and
last group to overlap when two constructors are directly nested.

Fixes #4652
2016-11-16 01:36:20 +01:00
REAS
c6a2b03d1c Fresh keywords from Reference updates/additions 2016-11-10 14:59:59 -08:00
Ben Fry
39692cda55 remove other logging references 2016-11-09 21:20:51 -05:00
Ben Fry
9d051cd052 fix copyrights, remove authors per guidelines, replace logging 2016-11-09 21:13:06 -05:00
Ben Fry
9465c67230 remove the Java logger in favor of built-in logging 2016-11-09 17:24:01 -05:00
Ben Fry
b42ac594f8 detect changes to /etc/hosts and warn user (#4738) 2016-11-09 11:52:48 -05:00
Ben Fry
cc8a12cf81 oh, permissions... i blame windows 2016-11-09 11:07:23 -05:00
Ben Fry
10eb4af3be more error handling and logging to sort out #4735 2016-11-08 13:49:54 -05:00
Ben Fry
7a719e1b5e trying to clean up DetailPanel 2016-11-05 14:05:07 -04:00
Ben Fry
d596697dee deal with pedantic code analyzer (fixes #4670) 2016-10-29 11:12:39 -04:00
Ben Fry
3a21ba998f update launch4j to 3.9, fixes #4682 2016-10-29 10:16:19 -04:00
Rostyslav Zatserkovnyi
5d898e9085 Add 'Jump to Declaration' to PDE right-click menu 2016-10-19 13:39:15 +03:00
Ben Fry
5634ca28e7 add getRenderer() to SurfaceInfo (fixes #4441) 2016-09-02 12:10:59 -04:00
gohai
76043ac0dc IO: Tweaks to SoftwareServo JavaDoc 2016-08-28 17:50:40 +02:00
gohai
ad28491c25 IO: Add PHONY target to Makefile 2016-08-28 17:50:40 +02:00
Ben Fry
f8e0491517 this was just doubling this stuff up, oops 2016-08-19 17:11:11 -04:00
Ben Fry
eba6ed14e6 fix "Embed Java" for 32-bit Linux export 2016-08-19 17:08:01 -04:00
Ben Fry
2e9357839c Merge branch 'master' of github.com:processing/processing 2016-08-19 16:42:35 -04:00
Ben Fry
a1e774b874 disable ext.dirs on Linux export and set jna.nosys as well 2016-08-19 16:42:30 -04:00
Ben Fry
534ca5d86f fixes for java.ext.dirs on Windows (more for #4623) 2016-08-19 15:39:02 -04:00
Ben Fry
3f0ed67d8c OS X does not like quotes here 2016-08-19 14:11:22 -04:00
Ben Fry
bcd7f9daf2 work on quoting of java.ext.dirs (#4623) 2016-08-19 14:07:04 -04:00
Ben Fry
2c0c1b9a36 bring back getImage() to fix #4473 2016-08-12 21:34:50 -04:00