dfgdfgdfg

Dependencies:   C12832 mbed

Fork of app-shield-LCD by Chris Styles

main.cpp

Committer:
AS_ER4
Date:
2017-01-30
Revision:
8:b7c87fd00982
Parent:
7:9bf99b580671

File content as of revision 8:b7c87fd00982:

#include "mbed.h"
#include "C12832.h"

// Using Arduino pin notation
C12832 lcd(D11, D13, D12, D7, D10);
void printStringScreen(char x, char y, char* toto);
AnalogIn pot1 (A0);
AnalogIn pot2 (A1);



float pot1F = (float)pot1*10;


int main()
{
    int j=0;
    while(1) {
            lcd.pixel(10,10,1);
            //lcd.set_contrast(0);
            printStringScreen(0,0,"ceci est un test");
            //printStringScreen(5,5,pot1);
        }
}

void printStringScreen(char x, char y, char* toto){
    
     lcd.locate(x,y);
     lcd.printf(toto);
    
    }