Skip to content

Commit ff6771b

Browse files
committed
updated pins for pi zero 2
1 parent 53bca31 commit ff6771b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nids/pi_prediction.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def preprocess_packet(packet, scaler):
4545
return torch.tensor(scaled_data, dtype=torch.float32), features, src_ip, dst_ip
4646

4747
# Define the GPIO pin numbers for the LEDs
48-
GREEN_LED_PIN = 17
49-
RED_LED_PIN = 27
50-
ORANGE_LED_PIN = 22
48+
GREEN_LED_PIN = 27
49+
RED_LED_PIN = 22
50+
ORANGE_LED_PIN = 23
5151

5252
# Setup GPIO mode and pins
5353
GPIO.setmode(GPIO.BCM)

0 commit comments

Comments
 (0)