<@U65PV1H3P> You need to import the package to use...
# android
t
@neuber You need to import the package to use it in another source file.
n
hi
t
MainActivity.kt
Replace
Copy code
import com.example.neube.smartdrive.device.components.SmartDriveDriver
import com.example.neube.smartdrive.device.components.SmartDriveDriver.MotorNumber
with
Copy code
import com.example.neube.smartdrive.device.components.SmartDriveDriver.*
import com.example.neube.smartdrive.device.components.SmartDriveDriver.MotorNumber.*
n
I think you not understood
I want to pass two parameters simultaneously instead of one fan.motornumber.direction = MotorNumber.Two.Direction.Right and not fan.motornumber= MotorNumber.Two
t
You can't assign two values with one statement like that.
There are lengthy ways but I wouldn't recommend them.
n
Please, what is the best way for me to do this?