We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5639e93 commit 6418fdbCopy full SHA for 6418fdb
java/libraries/io/src/processing/io/GPIO.java
@@ -165,7 +165,7 @@ protected static void checkValidPin(int pin) {
165
* the sketch is going to achieve.
166
* @param ms milliseconds to pause
167
*/
168
- protected static void delay(int ms) {
+ public static void delay(int ms) {
169
try {
170
Thread.sleep(ms);
171
} catch (InterruptedException e) {
@@ -196,7 +196,7 @@ protected static void delay(int ms) {
196
* you might be disappointed.
197
* @param us microseconds to pause
198
199
- protected static void delayMicroseconds(int us) {
+ public static void delayMicroseconds(int us) {
200
int ms = (int)(us / 1000);
201
int ns = (us - (ms * 1000)) * 1000;
202
0 commit comments