Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FT810 by
Revision 5:506e2de9a9e6, committed 2016-10-02
- Comitter:
- cpm219
- Date:
- Sun Oct 02 04:53:42 2016 +0000
- Parent:
- 4:03932ce8a04e
- Child:
- 6:ce30c1530d71
- Commit message:
- latest
Changed in this revision
| src/FT_GPU_Hal.cpp | Show annotated file Show diff for this revision Revisions of this file |
| src/FT_Hal_Utils.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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));
--- a/src/FT_Hal_Utils.cpp Sat Sep 17 15:07:06 2016 +0000 +++ b/src/FT_Hal_Utils.cpp Sun Oct 02 04:53:42 2016 +0000 @@ -1,6 +1,6 @@ #include "FT_Platform.h" #include "mbed.h" -#include "SDFileSystem.h" +//#include "SDFileSystem.h" /* function to load jpg file from filesystem */ /* return 0 if jpg is ok */
