Difference between revisions of "Component: FTDI (FT800) (FT800) (Misc)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | MatrixTSL  |-  | width="20%" style="color:gray;" | Version  | 2.0  |-  | width="20%" style="color:gray;...")  | 
				|||
| Line 16: | Line 16: | ||
==Detailed description==  | ==Detailed description==  | ||
| + | |||
| + | |||
''No detailed description exists yet for this component''  | ''No detailed description exists yet for this component''  | ||
==Examples==  | ==Examples==  | ||
| + | |||
| + | |||
''<span style="color:red;">No additional examples</span>''  | ''<span style="color:red;">No additional examples</span>''  | ||
| Line 453: | Line 457: | ||
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
| + | |}  | ||
| + | |||
| + | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"  | ||
| + | |-  | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''  | ||
| + | |-  | ||
| + | | colspan="2" | Must be called before any other CAN component macros to enable and initialise the CAN peripheral.    | ||
| + | |-  | ||
| + | |-  | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
Revision as of 10:35, 17 November 2021
| Author | MatrixTSL | 
| Version | 2.0 | 
| Category | Misc | 
Contents
FTDI (FT800) component
The FT800 provides a powerful feature set in a small package to create dynamic HMI interfaces. The device supports line by line graphics rendering to 1/16 of a pixel on displays with resolution up to 512 x 512 with 262K colours. The chip includes a touch controller for sensing touch feedback from a TFT display with a resistive touch panel as well as a sound synthesizer and audio playback with a PWM output to drive a speaker.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
| MemRead16 | |
| Reads a single unsigned int from the FT800 internal address space | |
| Address | |
| Return | |
| MemRead8 | |
| Reads a single data byte from the FT800 internal address space | |
| Address | |
| Return | |
| MemRead32 | |
| Reads a single unsigned long from the FT800 internal address space | |
| Address | |
| Return | |
| MemWrite16 | |
| Writes a unsigned int value to the FT800 internal address space | |
| Address | |
| Data | |
| Return | |
| MemWrite8 | |
| Writes a byte value to the FT800 internal address space | |
| Address | |
| Data | |
| Return | |
| CommandWrite | |
| Sends FT800 command | |
| Command | |
| Return | |
| MemWrite32 | |
| Writes a unsigned long value to the FT800 internal address space | |
| Address | |
| Data | |
| Return | |
| Initialise | |
| System initialization routines. Executed once on reset. Returns 0 if device not detected or 1 if device is correctly initialised. | |
| Return | |
| WriteFileSector | |
| Return | |
| AppendStringToFile | |
| Data_String | |
| Return | |
| ReadFileSize | |
| Reads the entire size of the current file in bytes. | |
| Return | |
| SetFileIndex | |
| Sets the current file index and used to switch between several open file streams. Default = 0. | |
| File_Index | |
| File index ranges from 0 to (Max Concurrent Files - 1) | |
| Return | |
| SetByte | |
| Int | |
| Ix | |
| Value | |
| Return | |
| ReadFileSize | |
| Reads the entire size of the current file in bytes. | |
| Return | |
| GetByte | |
| Gets a byte from an int | |
| Int | |
| Ix | |
| Return | |
| SetTimeAndDate | |
| Sets the current time and date. Time = (Hour << 11) + (Min << 5) + (Sec >> 1) Date = (YearFrom1980 << 9) + (Month << 5) + (Day) Additional details can be found here: http://www.maverick-os.dk/FileSystemFormats/FAT16_FileSystem.html#TimeFormat | |
| Time | |
| Sets the current Time in FAT Time format hhhhhmmmmmmsssss - S=Secs/2 | |
| Date | |
| Sets the current Date in FAT Date format yyyyyyymmmmddddd - Y=Years since 1980 | |
| Return | |
| Initialise | |
| Attempts to communicate with the SD card and if successful sets up the file system. Returns 0 for success. | |
| Return | |
| Initialise | |
| Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
| Return | |