Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkfun/sparkfun_serial_graphic_lcd_particle_library
A quick port of the library for the Graphic Serial LCD backpack to the Particle IDE.
https://github.com/sparkfun/sparkfun_serial_graphic_lcd_particle_library
display graphic-lcd lcd sparkfun sparkfun-products
Last synced: 4 days ago
JSON representation
A quick port of the library for the Graphic Serial LCD backpack to the Particle IDE.
- Host: GitHub
- URL: https://github.com/sparkfun/sparkfun_serial_graphic_lcd_particle_library
- Owner: sparkfun
- License: mit
- Created: 2015-07-02T18:05:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-03T03:31:19.000Z (over 9 years ago)
- Last Synced: 2024-11-16T07:15:21.402Z (2 months ago)
- Topics: display, graphic-lcd, lcd, sparkfun, sparkfun-products
- Language: Arduino
- Size: 1010 KB
- Stars: 1
- Watchers: 44
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## SparkFun SparkFun's Serial Graphic LCD Backpack Particle Library
Firmware library for SparkFun's Serial Graphic LCD Backpack.
About
-------------------This is a firmware library for [SparkFun's Serial Graphic LCD Backpack](https://www.sparkfun.com/products/9352).
[![SparkFun's Serial Graphic LCD Backpack](https://cdn.sparkfun.com//assets/parts/2/9/2/2/09352-01.jpg)](https://www.sparkfun.com/products/9352).
This is the serial backpack for graphic LCDs. The SparkFun Graphic LCD Serial Backpack interfaces to either our 160x128 pixel “Huge” Graphic LCD, or the smaller 128x64 pixel display, and provides a simple serial interface to a full range of controls.
This backpack will allow you to write text, draw lines, circles and boxes, set or reset individual pixels, and erase specific blocks of the display. The backlight and baud rate can also be controlled via serial communication. There’s also a reverse mode that allows the screen to operate blue on white instead of white on blue. Additionally, all source code for the ATMega168 processor is compiled using the free WinAVR compiler and is free for downloading.
Repository Contents
-------------------* **/doc** - Additional documentation for the user. These files are ignored by the IDE.
* **/firmware** - Source files for the library (.cpp, .h).
* **/firmware/examples** - Example sketches for the library (.cpp). Run these from the Particle IDE.
* **spark.json** - General library properties for the Particel library manager.Example Usage
-------------------Include the Serial Graphic LCD library:
#include "SparkFun_Serial_Graphic_LCD.h"
Initalize and instance of the LCD object:
//Create an instance of the LCD class named LCD. We will use this instance to call all the
//subsequent LCD functions
LCD LCD;
Here is a list of the avaialbel functions:void printStr(char Str[78]);
void printNum(int num);
void nextLine();
void clearScreen();
void toggleReverseMode();
void toggleSplash();
void setBacklight(byte duty);
void setBaud(byte baud);
void restoreDefaultBaud();
void setX(byte posX);
void setY(byte posY);
void setHome();
void demo();
void setPixel(byte x, byte y, byte set);
void drawLine(byte x1, byte y1, byte x2, byte y2, byte set);
void drawBox(byte x1, byte y1, byte x2, byte y2, byte set);
void drawCircle(byte x, byte y, byte rad, byte set);
void eraseBlock(byte x1, byte y1, byte x2, byte y2);Recommended Components
-------------------* [Particle Photon](https://www.sparkfun.com/products/13345)
* [SparkFun Serial Graphic LCD 160x128](https://www.sparkfun.com/products/8884)
* [SparkFun Serial Graphic LCD 128x64](https://www.sparkfun.com/products/9351)License Information
-------------------This product is _**open source**_!
Please review the LICENSE.md file for license information.
If you have any questions or concerns on licensing, please contact [email protected].
Distributed as-is; no warranty is given.
- Your friends at SparkFun.