Difference between revisions of "Arduino screen"

From Tmplab
(Sketch)
Line 24: Line 24:
  
 
See u8glib examples sketch.
 
See u8glib examples sketch.
 
  
 
== Sketch ==
 
== Sketch ==

Revision as of 21:55, 30 January 2016

Easy Arduino TFT screen

Hardware

  • you want to display some data/state of your arduino
  • If you're fed up or can't use the serial line

Try the very cheap tft screen for arduino.

Pictures+Library u8glib on github

It can be as low as 4 pin to connect in i2c :

  • VCC (5V)
  • GND
  • SCL (a clock) goes by default to arduino A5
  • SDA for data goes by default to arduino A4

Software

If you use the 4 pin display and u8glib, the line you need to remove comment (// at the beginning )is :

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send AC

See u8glib examples sketch.

Sketch

A basic sketch to display strings array and a pin value is available. Ask contact at tmplab.org if it's not available soon on git