Beispiel #1
0
 public AdaFruitILI9328(ShiftRegister74HC595 data, Cpu.Pin chipSelect, Cpu.Pin commandData, Cpu.Pin write, Cpu.Pin read, Cpu.Pin reset)
 {
     _chipSelect  = new OutputPort(chipSelect, false);
     _commandData = new OutputPort(commandData, false);
     _write       = new OutputPort(write, false);
     _read        = new OutputPort(read, false);
     _reset       = new OutputPort(reset, false);
 }
 public LedMS88SR74HC595(ShiftRegister74HC595 shiftreg)
     : this(shiftreg, new[] {
         new OutputPort(Pins.GPIO_PIN_D0, true),
         new OutputPort(Pins.GPIO_PIN_D1, true),
         new OutputPort(Pins.GPIO_PIN_D2, true),
         new OutputPort(Pins.GPIO_PIN_D3, true),
         new OutputPort(Pins.GPIO_PIN_D4, true),
         new OutputPort(Pins.GPIO_PIN_D5, true),
         new OutputPort(Pins.GPIO_PIN_D6, true),
         new OutputPort(Pins.GPIO_PIN_D7, true)
     }) {
 }
Beispiel #3
0
 public AdaFruitILI932x(
     ShiftRegister74HC595 shiftRegister,
     Cpu.Pin tftChipSelect,
     Cpu.Pin tftCommandData,
     Cpu.Pin tftWrite,
     Cpu.Pin tftRead,
     Cpu.Pin tftReset,
     Cpu.Pin tftBackLight = Cpu.Pin.GPIO_NONE)
 {
     _parallelDataOut = shiftRegister;
     _chipSelect      = new OutputPort(tftChipSelect, true);
     _commandData     = new OutputPort(tftCommandData, true);
     //_read = new OutputPort(tftRead, false);
     _write         = new OutputPort(tftWrite, true);
     _reset         = new OutputPort(tftReset, true);
     Orientation    = LCD.Orientation.Portrait;
     _lcdProperties = new LcdProperties(
         width: 240, height: 320,
         supportTouch: true, supportHardwareScrolling: true, supportOrientation: true);
     if (tftBackLight != Cpu.Pin.GPIO_NONE)
     {
         _backLight = new PWM(tftBackLight);
     }
 }
 public AdaFruitILI9328(ShiftRegister74HC595 data, Cpu.Pin chipSelect, Cpu.Pin commandData, Cpu.Pin write, Cpu.Pin read, Cpu.Pin reset) {
     _chipSelect = new OutputPort(chipSelect, false);
     _commandData = new OutputPort(commandData, false);
     _write = new OutputPort(write, false);
     _read = new OutputPort(read, false);
     _reset = new OutputPort(reset, false);
 }
 public LedMS88SR74HC595(ShiftRegister74HC595 shiftreg, OutputPort[] rowPorts) {
     ShiftRegister = shiftreg;
     RowPortMap = rowPorts;
 }
 public AdaFruitILI932x(
     ShiftRegister74HC595 shiftRegister,
     Cpu.Pin tftChipSelect,
     Cpu.Pin tftCommandData,
     Cpu.Pin tftWrite,
     Cpu.Pin tftRead,
     Cpu.Pin tftReset,
     Cpu.Pin tftBackLight = Cpu.Pin.GPIO_NONE) {
         _parallelDataOut = shiftRegister;
         _chipSelect = new OutputPort(tftChipSelect, true);
         _commandData = new OutputPort(tftCommandData, true);
         //_read = new OutputPort(tftRead, false);
         _write = new OutputPort(tftWrite, true);
         _reset = new OutputPort(tftReset, true);
         Orientation = LCD.Orientation.Portrait;
         _lcdProperties = new LcdProperties(
             width: 240, height: 320,
             supportTouch: true, supportHardwareScrolling: true, supportOrientation: true);
         if (tftBackLight != Cpu.Pin.GPIO_NONE) {
             _backLight = new PWM(tftBackLight);
         }
 }