TouchShield Function Reference
This is a reference list of functions available when programming the Liquidware TouchShield. If you need the core, which contains these headers bundled together, look at the guide to using the Arduino IDE.
OLED (lcd.h)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
void lcd_clear( unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, COLOR * color ); void lcd_clearScreen( COLOR c ); void lcd_setBrightness( unsigned char brightnessLevel ); void lcd_setContrast( unsigned char red, unsigned char green, unsigned char blue ); void lcd_pixel( unsigned char x, unsigned char y, COLOR pixel_color ); void lcd_circle( unsigned char x, unsigned char y, unsigned char radius, COLOR outline_color, COLOR fill_color ); void lcd_rectangle( unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, COLOR outline_color, COLOR fill_color ); void lcd_line( unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, COLOR line_color ); void lcd_putc( unsigned char ch, unsigned char x_pos, unsigned char y_pos, COLOR fc, COLOR bc ); void lcd_puts( char * string, unsigned char x_pos, unsigned char y_pos, COLOR fc, COLOR bc ); void lcd_dimWindow( unsigned char left, unsigned char top, unsigned char right, unsigned char bottom ); void lcd_rect( LCD_RECT r, COLOR outline_color, COLOR fill_color ); |
Serial (HardwareSerial.h)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
class HardwareSerial
{
private:
//uint8_t _uart;
void printNumber( unsigned long, uint8_t );
public:
HardwareSerial( uint8_t );
void begin( long );
uint8_t available( void );
int read( void );
void flush( void );
void print( char );
void print( const char[] );
void print( uint8_t );
void print( int );
void print( unsigned int );
void print( long );
void print( unsigned long );
void print( long, int );
void println( void );
void println( char );
void println( const char[] );
void println( uint8_t );
void println( int );
void println( long );
void println( unsigned long );
void println( long, int );
};
|
Image Downloading Interface (image_interface.h)
1 |
void image_interface_begin();
|
Bitmaps (bmp.h)
1 |
void bmp_draw( char * bmp_name, unsigned char x, unsigned char y ); |
What’s Next?
If you’re lost here you could start looking at some code in the Liquidware projects part of the site. If you just need some more basic information you could read about using the Arduino IDE, and if you’re looking to enhance this API or another project you can learn how to collaborate on the TouchShield core & projects.
