How to Translate code Python to Java Pi4j

22 views
Skip to first unread message

Developer42

unread,
May 10, 2018, 7:03:30 AM5/10/18
to Pi4J
Hello eveybody,

I need help, I wrote the following code in python and how can I do it using pi4j Java?

My Python code:

import RPi.GPIO as GPIO

GPIO
.setwarnings(False)
GPIO
.setmode(GPIO.BOARD)

GPIO
.setup(7, GPIO.OUT)
GPIO
.output(7, False)
GPIO
.output(7, True)

Reply all
Reply to author
Forward
0 new messages