public void Initialize() { device = new UnixDevice("/dev/fb0"); memory = device.MMap((uint)hwBufferSize, 0); Clear(); Update(); }
public Output() { pwmDevice = new UnixDevice("/dev/lms_pwm"); tachoDevice = new UnixDevice("/dev/lms_motor"); tachoMemory = tachoDevice.MMap(TachoMemorySize, 0); this.BitField = OutputBitfield.OutA; }
static Lcd() { var device = new UnixDevice("/dev/fb0"); memory = device.MMap((uint)hwBufferSize, 0); Clear(); Update(); }
private Lcd() { device = new UnixDevice("/dev/fb0"); memory = device.MMap(hwBufferSize, 0); Clear(); Update(); redGradientStep = (float)(endColor.Red - startColor.Red) / Height; greenGradientStep = (float)(endColor.Green - startColor.Green) / Height; blueGradientStep = (float)(endColor.Blue - startColor.Blue) / Height; }
private SensorManager() { DeviceManager = new UnixDevice("/dev/lms_dcm"); AnalogDevice = new UnixDevice("/dev/lms_analog"); AnalogMemory = AnalogDevice.MMap(analogMemorySize, 0); UartDevice = new UnixDevice("/dev/lms_uart"); UartMemory = UartDevice.MMap(uartMemorySize, 0); I2CDevice = new UnixDevice("/dev/lms_iic"); I2CMemory = I2CDevice.MMap(i2cMemorySize, 0); }
public EV3Buttons() { dev = new UnixDevice("/dev/lms_ui"); buttonMem = dev.MMap(ButtonCount, 0); }