Well I'm at very best a beginner in programming and electronics in general. I'm completely lost when it comes to drawing shapes and what not, heck I was excited when I got to draw a line! The library was made from the sample code, since it was a bit overwhelming for my noobness, was lucky enough to find somebody who converted it into a library! (Thanks again Thomas!)
http://elec.tkjweb.dk/blog/wp-content/uploads/NokiaLCD.zip
I'm not really sure what all I should include here, so I'll shoot for what I think! Basically I'm trying to make it easy to make a circle by typing a few bytes rather than 8 lines of code.
Well here's the header file, I guess I'm just looking for the mathematical equation for a circle, and maybe a little help incorporating it in with my code.
Thanks in advance!
/*
NokiaLCD.h - Library for a Nokia LCD with the epson driver.
Created by Thomas Jespersen, July 2009 (Originally Arduino Sketch by Gravitech.us)
Released into the public domain.
*/
#ifndef NokiaLCD_h
#define NokiaLCD_h
#include "WProgram.h"
class NokiaLCD
{
public:
void LCD_put_pixel(byte color, byte x, byte y);
void lcd_set_box(byte x1, byte y1, byte x2, byte y2);
void lcd_clear(byte color, byte x1, byte y1, byte x2, byte y2);
void lcd_init();
void draw_color_bar();
void draw_text_line(byte fcolor, byte bcolor,byte x, byte y,char c);
void lcd_draw_text(byte fcolor, byte bcolor, byte x, byte y,char *text);
private:
void shiftBits(byte b);
void sendData(byte data);
void sendCMD(byte data);
};
#endif