예제 #1
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);
     }
 }
예제 #2
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);
         }
 }