hello, I wanted to see if anyone has tried controlling a DC motor? I know the GPIO library for xojo comes with servo motors and how to control them. But, I am struggling to do it with a DC motor.
const kServoPin = 24
Dim servo As New GPIO.Servo(kServoPin)
If servo.ErrorCode = 0 Then
^^ this is some of the code that I’ve tried
I have changed my code a bit I am not sure if this would work
const Pin1 = 24
const Pin2 = 23
const Pin3 = 35
if Up is pressed
Xojo is not the best option to work with GPIO but if you really want to do it, there is a book about this:
you mean a stepping motor?
I’ll take a look into this thank you.