| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,9 +43,18 @@ public class GPIO { | |||
| 43 | 43 | public static final int HIGH = 1; | |
| 44 | 44 | ||
| 45 | 45 | public static final int NONE = 0; | |
| 46 | - public static final int CHANGE = 1; // trigger when level changes | ||
| 47 | - public static final int FALLING = 2; // trigger when level changes from high to low | ||
| 48 | - public static final int RISING = 3; // trigger when level changes from low to high | ||
| 46 | + /** | ||
| 47 | + * trigger when level changes | ||
| 48 | + */ | ||
| 49 | + public static final int CHANGE = 1; | ||
| 50 | + /** | ||
| 51 | + * trigger when level changes from high to low | ||
| 52 | + */ | ||
| 53 | + public static final int FALLING = 2; | ||
| 54 | + /** | ||
| 55 | + * trigger when level changes from low to high | ||
| 56 | + */ | ||
| 57 | + public static final int RISING = 3; | ||
| 49 | 58 | ||
| 50 | 59 | protected static Map<Integer, Thread> irqThreads = new HashMap<Integer, Thread>(); | |
| 51 | 60 | protected static boolean serveInterrupts = true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,12 +33,30 @@ | |||
| 33 | 33 | ||
| 34 | 34 | public class SPI { | |
| 35 | 35 | ||
| 36 | - public static final int MODE0 = 0; // CPOL=0, CPHA=0, most common | ||
| 37 | - public static final int MODE1 = 1; // CPOL=0, CPHA=1 | ||
| 38 | - public static final int MODE2 = 2; // CPOL=1, CPHA=0 | ||
| 39 | - public static final int MODE3 = 3; // CPOL=1, CPHA=1 | ||
| 40 | - public static final int MSBFIRST = 0; // most significant bit first, most common | ||
| 41 | - public static final int LSBFIRST = 1; // least significant bit first | ||
| 36 | + /** | ||
| 37 | + * CPOL=0, CPHA=0, most common | ||
| 38 | + */ | ||
| 39 | + public static final int MODE0 = 0; | ||
| 40 | + /** | ||
| 41 | + * CPOL=0, CPHA=1 | ||
| 42 | + */ | ||
| 43 | + public static final int MODE1 = 1; | ||
| 44 | + /** | ||
| 45 | + * CPOL=1, CPHA=0 | ||
| 46 | + */ | ||
| 47 | + public static final int MODE2 = 2; | ||
| 48 | + /** | ||
| 49 | + * CPOL=1, CPHA=1 | ||
| 50 | + */ | ||
| 51 | + public static final int MODE3 = 3; | ||
| 52 | + /** | ||
| 53 | + * most significant bit first, most common | ||
| 54 | + */ | ||
| 55 | + public static final int MSBFIRST = 0; | ||
| 56 | + /** | ||
| 57 | + * least significant bit first | ||
| 58 | + */ | ||
| 59 | + public static final int LSBFIRST = 1; | ||
| 42 | 60 | ||
| 43 | 61 | protected int dataOrder = 0; | |
| 44 | 62 | protected String dev; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments