rteerter

Dependencies:   C12832

Committer:
burgerking
Date:
Sat May 02 11:55:03 2020 +0000
Revision:
7:816b490a3119
Parent:
6:f8cb706c480c
a_code;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dreschpe 0:f6a57b843f79 1 #include "mbed.h"
chris 3:2db94ee076ee 2 #include "C12832.h"
dreschpe 0:f6a57b843f79 3
chris 4:39c7c31b8fb0 4 // Using Arduino pin notation
chris 4:39c7c31b8fb0 5 C12832 lcd(D11, D13, D12, D7, D10);
burgerking 7:816b490a3119 6 DigitalIn fire(D4);
burgerking 7:816b490a3119 7 int main(){
burgerking 7:816b490a3119 8 int etatBtnPrev,etatBtnAct;
burgerking 7:816b490a3119 9 while(1){
burgerking 7:816b490a3119 10 etatBtnAct=fire;
burgerking 7:816b490a3119 11 if(etatBtnAct==1&&etatBtnPrev==0){
burgerking 7:816b490a3119 12 lcd.cls();
burgerking 7:816b490a3119 13 lcd.locate(0,10);
burgerking 7:816b490a3119 14 lcd.printf("Front \n Montant");
burgerking 7:816b490a3119 15 wait(1.0);
burgerking 7:816b490a3119 16 ldc.printf(wait);
burgerking 7:816b490a3119 17 }
burgerking 7:816b490a3119 18 else{
burgerking 7:816b490a3119 19 lcd.cls();wait(0.05);
burgerking 7:816b490a3119 20 }
burgerking 7:816b490a3119 21 etatBtnPrev=etatBtnAct;
burgerking 7:816b490a3119 22 }
burgerking 7:816b490a3119 23 }
burgerking 7:816b490a3119 24
dreschpe 1:1c6a9eaf55b5 25
dreschpe 0:f6a57b843f79 26