forked from Mayankneup/Automated-Planting-system-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPort_V1.java
More file actions
21 lines (17 loc) · 679 Bytes
/
Port_V1.java
File metadata and controls
21 lines (17 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package Watering_System_V1;
public class PORT {
static final byte I2C0 = 0x3C; // OLED Display
public static final int A0 = 14; // Moisture/Angle sencor
static final int A2 = 16; // Sound
static final int A6 = 20; // Sound
static final int D5 = 5; // Buzzer/Moter
static final int D6 = 6; // Button
static final int D2 = 2; // Buzzer
static final int D4 = 4; // LED
static final int DELAY = 1000;
static final int DRY_VALUE = 660;
static final int WET_VALUE = 540;
static final int MAX_SENCOR_VALUE = 1023;
static final int MAX_VOLTAGE = 5;
public static String BOARD = "/dev/cu.usbserial-0001";
}