Commit Graph

2007 Commits

Author SHA1 Message Date
gohai
165ef60c99 IO: Remove the duplicate "duty" argument from the reference for PWM.set() 2018-07-01 10:54:45 -07:00
Olivier LeDiouris
c31a7414ac IO: Add PCA9685 servo/PWM controller example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
Olivier LeDiouris
611175f416 IO: Add TSL2561 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
Olivier LeDiouris
ed8ad617af IO: Add BME280 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:54:45 -07:00
gohai
c026d8e6f2 IO: Add MPR121 capacitive touch example 2018-07-01 10:54:45 -07:00
gohai
def4a9b4db IO: Reorganize OOP examples 2018-07-01 10:54:45 -07:00
gohai
e19fab1b2b IO: Add a 100ms timeout to I2C to allow communication with Arduino
Note this currently does not include the compiled binary for linux-arm64
2018-07-01 10:54:45 -07:00
gohai
0271424988 IO: Fix crash when I2C.read() was called without prior write() 2018-07-01 10:54:45 -07:00
gohai
e68d8feb75 Enable exporting of Windows applications on ARM
Steps to compile ld & windres:
sudo aptitude install mingw-w64
wget https://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.bz2
cd binutils-2.30
./configure --target=i686-w64-mingw32
make -j4 -l4
sudo make install
2018-07-01 10:54:45 -07:00
gohai
78cbf012c1 IO: Speed up GPIO.pinMode() 2018-07-01 10:54:45 -07:00
gohai
0b4498e5d6 IO: Clarify SimpleInput example
As suggested by @msurguy
2018-07-01 10:54:45 -07:00
gohai
d613f999c0 IO: Implement Raspbian-only method for setting pull{up,down} resistors
Aarch64 version compiled courtesy of @xranby
2018-07-01 10:54:45 -07:00
Ben Fry
ca9262213d add another try/catch for createWriter() call 2018-03-13 20:53:11 -04:00
Ben Fry
2ac50a99a5 show warning when using blendMode() with PDF (fixes #5105) 2018-03-13 20:13:09 -04:00
Ben Fry
e77da8db9f fix rename dialog scaling for high density (fixes #5368) 2018-03-13 19:36:48 -04:00
Ben Fry
532860cd9a erase types and make this if() a little less confusing 2018-03-13 13:08:18 -04:00
Ben Fry
3e495b33a5 do the same thing with less code 2018-03-13 12:37:41 -04:00
Jakub Valtar
728cb75494 Output java files in UTF-8 and force compiler to use UTF-8 2018-03-13 15:35:26 +01:00
Tobias Pristupin
bb48d84766 Updated comment
Comment said function throws RunnerException, but function throws SketchException which isn't related to RunnerException
2018-02-20 08:30:45 -05:00
Jakub Valtar
404990f29f Fix Net library buffer sizes
Because I don't know how to count...
2018-02-02 17:14:56 +01:00
Jakub Valtar
d887779eb6 Net-client: perf tuning - make read buf the size of socket receive buf 2018-01-22 20:28:09 +01:00
Jakub Valtar
fe465fe4de Net-client: remove unneeded synchronization block 2018-01-22 19:50:48 +01:00
Jakub Valtar
bb6c9a568a Net-server: remove suspicious sleep 2018-01-22 19:50:06 +01:00
Jakub Valtar
f6b08df336 Net-server: call clientEvent() of the sketch when received data from a client 2018-01-22 19:34:21 +01:00
Jakub Valtar
2b1cd66f83 Net: unwrap the exception if it came from the user code 2018-01-22 13:44:43 +01:00
Jakub Valtar
0d12c46825 Net-server: remove extra array creation 2018-01-21 22:32:16 +01:00
Jakub Valtar
b692215775 Net-server: properly synchronize clients array 2018-01-21 22:30:46 +01:00
Jakub Valtar
f76d3c4f80 Net-client: remove extra catch block
Handled by IOException block (it's a superclass of ConnectException and does the same thing).
2018-01-21 22:30:46 +01:00
Jakub Valtar
0e12d1175e Net-client: remove unnecessary array creation 2018-01-21 22:30:45 +01:00
Jakub Valtar
aba056cf96 Net-client: set max buffer size 2018-01-21 22:30:36 +01:00
Jakub Valtar
e7f6e1b5b0 Net-client: read bytes to a read buffer instead of one by one 2018-01-21 22:28:01 +01:00
Jakub Valtar
e64a283a00 Net-client: compact the buffer if possible instead of resizing 2018-01-21 17:03:55 +01:00
Jakub Valtar
f140299e48 Net-client: synchronize access to all concurrently modified fields 2018-01-21 16:42:45 +01:00
Jakub Valtar
05a2819a58 Net-client: use final field for lock 2018-01-21 16:40:47 +01:00
Ben Fry
dfbc00f5cb minor tweaks for warnings 2018-01-10 22:04:42 -05:00
Jakub Valtar
2fb37b6fb3 Fix error checker crash when className contains [ or ] 2017-11-09 12:23:51 -05:00
Ben Fry
6dc1879611 back out stream() usage that introduced a regression 2017-10-18 16:53:13 -04:00
Ben Fry
026b125792 Merge pull request #5134 from rbonifacio/refactor-towards-language-evolution
Refactor to use a few Java 8 features
2017-10-18 15:48:55 -04:00
Ben Fry
bc4471bf38 Merge pull request #5152 from GKFX/featurefixbadquotes
Handle curly quotes well
2017-09-24 11:00:34 -04:00
Jakub Valtar
fbc7befa84 Fix scrub comments for empty block comment /**/
Fixes #5219
2017-09-20 14:58:41 +02:00
Jakub Valtar
8c66a8c33d Make sure we don't try to get code out of bounds 2017-09-19 23:14:26 +02:00
Jakub Valtar
25ac5db0ab Remove problem priority since we're going to do it manually in PDEX.ErrorChecker 2017-09-19 23:04:56 +02:00
Jakub Valtar
46b5e29fb3 Gather error checking code in PDEX.ErrorChecker 2017-09-19 22:52:49 +02:00
Jakub Valtar
c583d2aaa9 To create Problems use pdeCode instead of messing with editor 2017-09-19 16:23:38 +02:00
Ben Fry
2f8f3f8ce3 Merge pull request #5186 from JakubValtar/fx-runtime
Add JavaFX runtime to error checker class path
2017-08-22 09:59:00 -04:00
George Bateman
363d22e955 Merge branch 'master' into featurefixbadquotes 2017-07-20 19:48:59 +01:00
Jakub Valtar
ab8daaed29 Add FX to ignorable imports
To get rid of missing library messages
2017-07-20 19:34:10 +02:00
Jakub Valtar
7dc3062db1 Add JavaFX runtime to error checker class path
In case somebody needs to work with native FX windows or events, here
they are, ready to be imported (like AWT stuff).
2017-07-20 19:26:15 +02:00
George Bateman
0c828ad433 Fix #5165. Wrong tab for missing brace 2017-07-18 20:28:20 +01:00
George Bateman
cd7430fc10 Handle curly quotes in error checker
Also now prioritizes error messages on a single line for display to the
user, since ECJ doesn't always get that right, reported mismatched
argument lists when there's a syntax error and so on.
2017-06-24 14:35:18 +01:00