![JAR search and dependency download from the Maven repository](/logo.png)
com.ociweb.iot.grove.thumb_joystick.ThumbJoystickTwig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foglight Show documentation
Show all versions of foglight Show documentation
FogLight is a lightweight runtime that enables makers of all ages and skill levels to create highly
performant apps for embedded devices like Raspberry Pi's.
The newest version!
package com.ociweb.iot.grove.thumb_joystick;
import com.ociweb.iot.hardware.ADIODevice;
import com.ociweb.iot.hardware.I2CConnection;
import com.ociweb.iot.maker.FogCommandChannel;
import com.ociweb.iot.maker.IODeviceTransducer;
import com.ociweb.iot.maker.Port;
public enum ThumbJoystickTwig implements ADIODevice{
ThumbJoystick(){
@Override
public boolean isInput(){
return true;
}
@Override
public int range(){
return 1024;
}
@Override
public int pinsUsed(){
return 2;
}
@Override
public ThumbJoystickTransducer newTransducer(FogCommandChannel... ch){
return new ThumbJoystickTransducer();
}
@Override
public ThumbJoystickTransducer newTransducer(Port p, FogCommandChannel... ch) {
return new ThumbJoystickTransducer(p);
}
@Override
public int defaultPullRateMS(){
return 40;
}
},
;
@Override
public int defaultPullRateMS() {
// TODO Auto-generated method stub
return 0;
}
@Override
public int pullResponseMinWaitNS() {
// TODO Auto-generated method stub
return 0;
}
@Override
public boolean isInput() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean isOutput() {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean isPWM() {
// TODO Auto-generated method stub
return false;
}
@Override
public int range() {
// TODO Auto-generated method stub
return 0;
}
@Override
public I2CConnection getI2CConnection() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean isValid(byte[] backing, int position, int length, int mask) {
// TODO Auto-generated method stub
return false;
}
@Override
public int pinsUsed() {
// TODO Auto-generated method stub
return 0;
}
@Override
public F newTransducer(FogCommandChannel... ch) {
// TODO Auto-generated method stub
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy