808
Dependents: Chromatograph_Mobile
Diff: src/FT_GPU_Hal.cpp
- Revision:
- 5:506e2de9a9e6
- Parent:
- 4:03932ce8a04e
- Child:
- 6:ce30c1530d71
diff -r 03932ce8a04e -r 506e2de9a9e6 src/FT_GPU_Hal.cpp --- a/src/FT_GPU_Hal.cpp Sat Sep 17 15:07:06 2016 +0000 +++ b/src/FT_GPU_Hal.cpp Sun Oct 02 04:53:42 2016 +0000 @@ -18,13 +18,14 @@ PinName intr, PinName pd) : + _spi(mosi, miso, sck), _ss(ss), _pd(pd), _f800_isr(InterruptIn(intr)) { _spi.format(8,0); // 8 bit spi mode 0 - _spi.frequency(1000000); // start with 10 Mhz SPI clock + _spi.frequency(10000000); // start with 10 Mhz SPI clock _ss = 1; // cs high _pd = 1; // PD high Bootup(); @@ -33,6 +34,7 @@ ft_bool_t FT800::Bootup(void){ Open(); + BootupConfig(); return(1); @@ -71,8 +73,8 @@ // Speed up - _spi.frequency(20000000); // 20 Mhz SPI clock DC -// _spi.frequency(12000000); // 12 Mhz SPI clock +// _spi.frequency(20000000); // 20 Mhz SPI clock DC + _spi.frequency(12000000); // 12 Mhz SPI clock /* Configuration of LCD display */ DispHCycle = my_DispHCycle; Wr16( REG_HCYCLE, DispHCycle); @@ -106,7 +108,7 @@ //#ifdef Inv_Backlite // turn on backlite // Wr16( REG_PWM_DUTY, 0); //#else - Wr16( REG_PWM_DUTY, 128); + Wr16( REG_PWM_DUTY, 127); //#endif Wr8( REG_GPIO_DIR,0x82); //| Rd8( REG_GPIO_DIR)); Wr8( REG_GPIO,0x080); //| Rd8( REG_GPIO));