Commit Graph

81 Commits

Author SHA1 Message Date
Stef Tervelde
fb8485451e Simplified gitignores 2025-02-05 21:18:22 +01:00
Stef Tervelde
d057c46fd2 Java Mode resources and Libraries 2024-12-16 20:34:24 +01:00
Ben Fry
8b4c4efbfd set all build.xml files to Java 17; replace a few tabs with spaces 2023-01-20 11:44:00 -05:00
Thomas Leplus
47c2a530ac Minor typos 2021-09-17 20:32:24 -07:00
Ben Fry
37752a217c remove jdt.compiler.jar as javac engine from subprojects 2021-07-04 21:21:39 -04:00
Anadroid
118e22e329 Formatting brief descriptions 2021-04-13 16:54:57 +02:00
Anadroid
7b5c8ba9ce Formatting more comments 2021-04-12 10:24:07 +02:00
Anadroid
dc6b4ed47c Renaming templates 2020-09-16 09:41:35 +02:00
Anadroid
51d2de2dd0 Fixed indentation, and removed unnecessary templates from the doclet 2020-09-15 14:57:37 +02:00
Anadroid
8a7c9571fa Updated descriptions in comments for processing core and libraries 2020-09-15 10:17:15 +02:00
Anadroid
42b0efb8b8 Changed comments for the libraries network, serial, and hardware i/o 2020-09-10 16:07:03 +02:00
A Pottinger
7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
REAS
9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
gohai
a7e2d6f122 IO: Unify ADC examples 2018-07-26 00:25:12 -07:00
gohai
a21e5a280e IO: Add ADS1X15 Analog-to-Digital converter example 2018-07-26 00:25:06 -07:00
gohai
cbdfb06c99 IO: Add a dispose method to PCA9685 example, document pulse widths
Developed together with @OlivierLD
2018-07-12 13:27:30 -07:00
gohai
cc46c5e680 IO: Fix pinMode() retry logic
If the file node is not accessible yet, NativeInterface.writeFile() will return -EACCES instead of -EPERM. Thanks @msurguy for reporting this and testing.
2018-07-11 14:07:06 -07:00
gohai
80453e84ba IO: Make I2C errors more verbose
The error code returned from C seems to have changed from -EIO to -EREMOTEIO during some recent kernel version.
2018-07-10 10:16:46 -07:00
gohai
89c7a24152 IO: Rename ServoSweep example 2018-07-01 10:05:18 -07:00
gohai
7bd50e435a IO: Remove the duplicate "duty" argument from the reference for PWM.set() 2018-07-01 10:05:18 -07:00
Olivier LeDiouris
9843d1c88d IO: Add PCA9685 servo/PWM controller example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
Olivier LeDiouris
5db3ec9227 IO: Add TSL2561 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
Olivier LeDiouris
2e05386994 IO: Add BME280 environmental sensor example
Donated by @OlivierLD, minor cleanups by @gohai
2018-07-01 10:05:18 -07:00
gohai
8aa1f803c4 IO: Add MPR121 capacitive touch example 2018-07-01 10:05:18 -07:00
gohai
67c4f3bd9d IO: Reorganize OOP examples 2018-07-01 10:05:18 -07:00
gohai
0bb5b77328 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:05:03 -07:00
gohai
41a52e7423 IO: Fix crash when I2C.read() was called without prior write() 2018-07-01 10:05:03 -07:00
gohai
99e5f74694 IO: Speed up GPIO.pinMode() 2018-06-26 19:13:19 -07:00
gohai
aba636275c IO: Clarify SimpleInput example
As suggested by @msurguy
2018-06-26 19:12:51 -07:00
gohai
de2cac9860 IO: Implement Raspbian-only method for setting pull{up,down} resistors
Aarch64 version compiled courtesy of @xranby
2018-06-18 07:38:30 -07:00
Rodrigo Bonifacio
325070d711 Refactoring towards Java language evolution.
- use the diamond operator in a few places
- use of multi-catch in a few places
2017-06-15 11:48:49 -03:00
gohai
8a055dddac IO: Remove unused internal method 2017-04-30 20:43:50 +02:00
gohai
b204f0d498 IO: Remove duplicate argument listing in Reference 2017-04-30 20:42:58 +02:00
gohai
00d3c11032 IO: Fix waitFor(pin, mode) 2017-04-30 20:41:14 +02:00
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
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
gohai
6bea3ee5c1 IO: Fix compilation on arm
Error introduced in previous commit.
2016-07-15 17:30:18 +02:00
gohai
dbdeb9cf66 IO: We want motors, they said (implements SoftwareServo)
Some measurements with a logic analyzer and the Raspberry Pi 2
sleep: 0.001500, measured avg: 0.0015357, measured 0.95 perc.: 0.0015573
sleep: 0.0185, measured avg: 0.0186177, measured 0.95 perc.: 0.0186345

servo_pulse_oversleep was set to account for the (expected) overhead of waking up and toggling the pin with help from the numbers above.
2016-06-23 19:52:14 +02:00
George Bateman
5767b086f6 Fix most Javadoc errors, except syntax 2016-05-10 19:13:20 +01:00
Ben Fry
db85400515 Merge pull request #4384 from gohai/arm-next
Add a few IO library examples
2016-05-06 20:03:11 -04:00
gohai
fe2082dcce IO: Simulate on all unsupported platforms
Instead of throwing an exception early on, this makes it possible to test all other parts of sketches that make light use of the IO library. A warning is printed once after startup for those environments.

This was tested on OS X against all examples that come with the IO library. Note: x86 and x64 are technically supported platforms. If a user on those prefers to use simulation instead, it is necessary to call NativeInterface.alwaysSimulate() before any other IO library function.
2016-05-05 19:33:37 +02:00