Commit Graph

12479 Commits

Author SHA1 Message Date
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 d0707b5fd6 fix ordering of BufferedOutputStream; huge speed fix 2017-02-20 15:30:49 -05:00
Ben Fry f3f5583e9b maybe no space there after all 2017-02-20 15:17:01 -05:00
Ben Fry 27037f9fd0 set the look and feel on Windows for 2x and native-like support 2017-02-20 15:08:57 -05:00
Ben Fry e240a88af4 fix wrong ordering of buffered wrapping 2017-02-19 15:47:00 -05:00
Ben Fry 607af34852 missed wrapping this guy in a buffer 2017-02-19 15:37:14 -05:00
Ben Fry 669d56a926 deal with static access warning 2017-02-19 13:58:26 -05:00
Ben Fry 3353478000 Merge branch 'master' of github.com:processing/processing 2017-02-19 10:35:09 -05:00
Ben Fry 7bcb98debb createInput() and createOutput() now both use buffered streams by default 2017-02-19 10:35:02 -05:00
Gottfried Haider 432d9732f3 Merge pull request #4921 from gohai/pgl-multisampling-fallback
Retry with multisampling disabled if creating a framebuffer fails because of INCOMPLETE_MULTISAMPLE
2017-02-19 09:57:35 +01:00
gohai 2d70d0f28a Retry with multisampling disabled if creating a framebuffer fails because of INCOMPLETE_MULTISAMPLE 2017-02-19 09:56:50 +01:00
Gottfried Haider 72144dd282 Merge pull request #4920 from gohai/pgl-validateframebuffer
Report more error conditions in validateFramebuffer
2017-02-19 02:28:48 +01:00
gohai ba1b71a1f2 Make validateFramebuffer match latest Khronos doc for GL4
Suggested by @JakubValtar
2017-02-18 19:43:00 +01:00
Ben Fry f967150430 improve sum() functions in processing.data 2017-02-18 13:24:23 -05:00
gohai f8d985a94c Report more error conditions in validateFramebuffer 2017-02-18 18:48:05 +01:00
Ben Fry d571dd716b notes from github updates 2017-02-17 17:31:04 -05:00
Ben Fry 1378adb369 Merge pull request #4915 from gohai/arm-opengl
ARM: Allow Raspberry Pi's Mesa GL driver to use up to 8 lights
2017-02-17 17:30:39 -05:00
gohai b1e583bd82 ARM: Allow Raspberry Pi's Mesa GL driver to use up to 8 lights
This caused register allocation issues before, but now this seem to be only still necessary for the binary GLES2 driver, where even enabling one more light (from 2 to 3) will make the shader compiler unhappy. Tested with 11.1.0-1+rpi1 on all P2D & P3D examples.
2017-02-17 18:47:44 +01:00
Ben Fry 8414512af9 stumbled across spacing issues 2017-02-15 17:55:57 -05:00
Ben Fry e38630aef4 variable only used for execute(), remove declaration 2017-02-15 17:52:09 -05:00
Ben Fry 5fbbd50689 clean up type warnings 2017-02-15 17:50:39 -05:00
Ben Fry fa949f24b9 these were the things just closed 2017-02-15 14:57:39 -05:00
Ben Fry a7b4e07f2f notes on fixes from Jakub 2017-02-15 14:56:09 -05:00
Jakub Valtar f0434cb503 Merge pull request #4907 from JakubValtar/fix-preproc
Fix preprocessing of code with double backslash in string or char literal
2017-02-15 15:05:08 +01: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
Jakub Valtar 85c6178228 Merge pull request #4906 from JakubValtar/interpolation
Enable bicubic interpolation for image-based editor components
2017-02-15 14:14:57 +01:00
Jakub Valtar e25100360b Enable bicubic interpolation for possibly scaled components 2017-02-15 14:01:16 +01:00
Jakub Valtar 2430b84c99 Make editor buttons nice when scaling UI 2017-02-15 13:56:28 +01:00
Ben Fry 15d4da6e97 notes about confirmed fixes 2017-02-13 14:24:17 -05: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 90f64770fe add separate issue for cross-platform scaling 2017-02-12 14:44:12 -05:00
Ben Fry 06bd5f8c2b starting the next release (3.3.1) 2017-02-12 13:02:19 -05:00
Ben Fry 1bcd576aee fix font typo and add scaling caveat processing-0257-3.3 2017-02-12 12:28:44 -05:00
Ben Fry f49ab8a628 write release notes for 3.3 2017-02-12 12:23:17 -05:00
Ben Fry 67c37e6c40 fix up the todo list based on hidpi changes 2017-02-12 12:10:39 -05:00
Ben Fry cafc1c49b7 remove the old Source Sans 2017-02-12 10:24:42 -05:00
Ben Fry ab5465d1ef add "auto" option for interface scaling 2017-02-12 10:21:55 -05:00
Ben Fry e5ed6ae7f1 possible fix for visual artifacts seen in #4700 2017-02-12 10:02:10 -05:00
Ben Fry bf15163698 digging into system dpi settings 2017-02-12 09:38:53 -05:00
Ben Fry 5315b631b3 switch to em spacing (for hidpi), use renamed font to fix #4747 2017-02-12 09:31:23 -05:00
Ben Fry c9d6f99cda fix filter width 2017-02-11 18:35:54 -05:00
Ben Fry 670f2dc06f fix the icon sizing 2017-02-11 18:33:34 -05:00
Ben Fry a43c150ac6 fix button sizing in contribs 2017-02-11 18:26:11 -05:00
Ben Fry 8480ddb82e fix the table view sizing 2017-02-11 18:22:44 -05:00