Mini SmartGPU Intelligent Graphics Processor- Vizic Technologies 2012

Dependencies:   MINISMARTGPU mbed

Committer:
emmanuelchio
Date:
Thu Aug 30 21:54:19 2012 +0000
Revision:
0:e6d7277d1360
Mini SmartGPU Intelligent Graphics Processor- Vizic Technologies 2012

Who changed what in which revision?

UserRevisionLine numberNew contents of line
emmanuelchio 0:e6d7277d1360 1 /*********************************************************
emmanuelchio 0:e6d7277d1360 2 VIZIC TECHNOLOGIES. COPYRIGHT 2012.
emmanuelchio 0:e6d7277d1360 3 THE DATASHEETS, SOFTWARE AND LIBRARIES ARE PROVIDED "AS IS."
emmanuelchio 0:e6d7277d1360 4 VIZIC EXPRESSLY DISCLAIM ANY WARRANTY OF ANY KIND, WHETHER
emmanuelchio 0:e6d7277d1360 5 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED
emmanuelchio 0:e6d7277d1360 6 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
emmanuelchio 0:e6d7277d1360 7 OR NONINFRINGEMENT. IN NO EVENT SHALL VIZIC BE LIABLE FOR
emmanuelchio 0:e6d7277d1360 8 ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES,
emmanuelchio 0:e6d7277d1360 9 LOST PROFITS OR LOST DATA, HARM TO YOUR EQUIPMENT, COST OF
emmanuelchio 0:e6d7277d1360 10 PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES,
emmanuelchio 0:e6d7277d1360 11 ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO
emmanuelchio 0:e6d7277d1360 12 ANY DEFENCE THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION,
emmanuelchio 0:e6d7277d1360 13 OR OTHER SIMILAR COSTS.
emmanuelchio 0:e6d7277d1360 14 *********************************************************/
emmanuelchio 0:e6d7277d1360 15 /**************************************************************************************/
emmanuelchio 0:e6d7277d1360 16 /*MINI SMARTGPU intelligent embedded graphics processor unit
emmanuelchio 0:e6d7277d1360 17 those examples are for use the MINI SMARTGPU with the mbed microcontoller, just connect tx,rx,and reset
emmanuelchio 0:e6d7277d1360 18 Board:
emmanuelchio 0:e6d7277d1360 19 http://vizictechnologies.com/#/mini-smart-gpu/4566376187
emmanuelchio 0:e6d7277d1360 20
emmanuelchio 0:e6d7277d1360 21 www.vizictechnologies.com
emmanuelchio 0:e6d7277d1360 22 Vizic Technologies copyright 2012*/
emmanuelchio 0:e6d7277d1360 23 /**************************************************************************************/
emmanuelchio 0:e6d7277d1360 24 /**************************************************************************************/
emmanuelchio 0:e6d7277d1360 25
emmanuelchio 0:e6d7277d1360 26 #include "mbed.h"
emmanuelchio 0:e6d7277d1360 27 #include "MINISMARTGPU.h"
emmanuelchio 0:e6d7277d1360 28
emmanuelchio 0:e6d7277d1360 29 //Some colour definitions
emmanuelchio 0:e6d7277d1360 30 #define orange 0xFC0F
emmanuelchio 0:e6d7277d1360 31 #define brown 0xBBCA
emmanuelchio 0:e6d7277d1360 32 #define ligBlue 0x96DD
emmanuelchio 0:e6d7277d1360 33
emmanuelchio 0:e6d7277d1360 34 MINISMARTGPU lcd(p13,p14,p15); //(TX,RX,Reset); Create Object "lcd"
emmanuelchio 0:e6d7277d1360 35
emmanuelchio 0:e6d7277d1360 36 int main() {
emmanuelchio 0:e6d7277d1360 37 lcd.reset(); //physically reset MINISMARTGPU
emmanuelchio 0:e6d7277d1360 38 lcd.start(); //initialize the MINISMARTGPU processor
emmanuelchio 0:e6d7277d1360 39 wait_ms(200);
emmanuelchio 0:e6d7277d1360 40
emmanuelchio 0:e6d7277d1360 41 //draw the house
emmanuelchio 0:e6d7277d1360 42 lcd.drawRectangle(38,58,112,126,orange,FILL); //draw a rectangle
emmanuelchio 0:e6d7277d1360 43 lcd.drawRectangle(38,58,112,126,BLACK,UNFILL);
emmanuelchio 0:e6d7277d1360 44 lcd.drawRectangle(45,75,68,93,ligBlue,FILL);
emmanuelchio 0:e6d7277d1360 45 lcd.drawRectangle(45,75,68,93,BLACK,UNFILL);
emmanuelchio 0:e6d7277d1360 46 lcd.drawLine(56,75,56,93,BLACK);
emmanuelchio 0:e6d7277d1360 47 lcd.drawLine(45,84,68,84,BLACK);
emmanuelchio 0:e6d7277d1360 48 lcd.drawCircle(96,83,11,ligBlue,FILL); //draw a circle
emmanuelchio 0:e6d7277d1360 49 lcd.drawCircle(96,83,11,BLACK,UNFILL);
emmanuelchio 0:e6d7277d1360 50 lcd.drawRectangle(68,100,89,126,brown,FILL);
emmanuelchio 0:e6d7277d1360 51 lcd.drawRectangle(68,100,89,126,BLACK,UNFILL);
emmanuelchio 0:e6d7277d1360 52 lcd.drawTriangle(33,59,76,22,117,59,brown,FILL); //draw a triangle
emmanuelchio 0:e6d7277d1360 53
emmanuelchio 0:e6d7277d1360 54 //draw trees
emmanuelchio 0:e6d7277d1360 55 lcd.drawRectangle(11,89,23,126,brown,FILL);
emmanuelchio 0:e6d7277d1360 56 lcd.drawRectangle(133,89,145,126,brown,FILL);
emmanuelchio 0:e6d7277d1360 57 lcd.drawCircle(139,75,15,GREEN,FILL); //draw a circle
emmanuelchio 0:e6d7277d1360 58 lcd.drawCircle(17,75,14,GREEN,FILL); //draw a circle
emmanuelchio 0:e6d7277d1360 59
emmanuelchio 0:e6d7277d1360 60 //draw grass
emmanuelchio 0:e6d7277d1360 61 lcd.drawLine(0,127,159,127,GREEN); //draw a line
emmanuelchio 0:e6d7277d1360 62
emmanuelchio 0:e6d7277d1360 63 //loop forever
emmanuelchio 0:e6d7277d1360 64 while(1);
emmanuelchio 0:e6d7277d1360 65 }