mirror of
https://github.com/processing/processing4.git
synced 2026-04-20 03:09:28 +02:00
I/O: Convert constants to Javadoc style
This commit is contained in:
@@ -43,9 +43,18 @@ public class GPIO {
|
||||
public static final int HIGH = 1;
|
||||
|
||||
public static final int NONE = 0;
|
||||
public static final int CHANGE = 1; // trigger when level changes
|
||||
public static final int FALLING = 2; // trigger when level changes from high to low
|
||||
public static final int RISING = 3; // trigger when level changes from low to high
|
||||
/**
|
||||
* trigger when level changes
|
||||
*/
|
||||
public static final int CHANGE = 1;
|
||||
/**
|
||||
* trigger when level changes from high to low
|
||||
*/
|
||||
public static final int FALLING = 2;
|
||||
/**
|
||||
* trigger when level changes from low to high
|
||||
*/
|
||||
public static final int RISING = 3;
|
||||
|
||||
protected static Map<Integer, Thread> irqThreads = new HashMap<Integer, Thread>();
|
||||
protected static boolean serveInterrupts = true;
|
||||
|
||||
@@ -33,12 +33,30 @@ import java.util.Map;
|
||||
|
||||
public class SPI {
|
||||
|
||||
public static final int MODE0 = 0; // CPOL=0, CPHA=0, most common
|
||||
public static final int MODE1 = 1; // CPOL=0, CPHA=1
|
||||
public static final int MODE2 = 2; // CPOL=1, CPHA=0
|
||||
public static final int MODE3 = 3; // CPOL=1, CPHA=1
|
||||
public static final int MSBFIRST = 0; // most significant bit first, most common
|
||||
public static final int LSBFIRST = 1; // least significant bit first
|
||||
/**
|
||||
* CPOL=0, CPHA=0, most common
|
||||
*/
|
||||
public static final int MODE0 = 0;
|
||||
/**
|
||||
* CPOL=0, CPHA=1
|
||||
*/
|
||||
public static final int MODE1 = 1;
|
||||
/**
|
||||
* CPOL=1, CPHA=0
|
||||
*/
|
||||
public static final int MODE2 = 2;
|
||||
/**
|
||||
* CPOL=1, CPHA=1
|
||||
*/
|
||||
public static final int MODE3 = 3;
|
||||
/**
|
||||
* most significant bit first, most common
|
||||
*/
|
||||
public static final int MSBFIRST = 0;
|
||||
/**
|
||||
* least significant bit first
|
||||
*/
|
||||
public static final int LSBFIRST = 1;
|
||||
|
||||
protected int dataOrder = 0;
|
||||
protected String dev;
|
||||
|
||||
Reference in New Issue
Block a user