242
26. USB2.0 port specification
USB 2.0 characteristics:
40 MB/s.
-pole cable. Devices complying with the
USB specification may consume a total of 500 mA from the bus. Devices with a power of up to
2.5 W can therefore be supplied via the bus.
ly be 4.5 m long at the maximum
Application Example:
USB interface can be used for extending memory capacity via attaching USB flash drive.
Configuration Commands
io.readfile (file)
Read whole file at once. Returns file contents as a string on success or nil on error.
io.writefile (file, data)
Writes given data to a file. Data can be either a value convertible to string or a table of such
values. When data is a table, then each table item is terminated by a new line character. Return
Boolean as write result when file can be open for writing or nil when file cannot be accessed.
USB flash drive supports FAT, FAT32 and NTFS file system. Maximum size of Flash drive is 32GB