LCD Baseshield GSOE
Dependents: DigitaleingabeBluetooth_TI4 Temperatursever_TI4 BelueftungMitDS1820 ZustandCodeschloss ... more
Revision 14:2d570187d0ca, committed 2022-03-14
- Comitter:
- jack1930
- Date:
- Mon Mar 14 15:28:25 2022 +0000
- Parent:
- 13:1d86cdba3ff5
- Commit message:
- warte mit inlien assembly
Changed in this revision
LCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1d86cdba3ff5 -r 2d570187d0ca LCD.cpp --- a/LCD.cpp Thu Mar 03 13:42:31 2022 +0000 +++ b/LCD.cpp Mon Mar 14 15:28:25 2022 +0000 @@ -33,15 +33,27 @@ clear(); } - +/* void lcd::warte(void) -{/* +{ *po=wert; while(*t==0); wait_ms(20); while(*t==1); - wait_ms(20);*/ -}; + wait_ms(20); +};*/ + +void lcd::warte() +{ + asm("push {R0,R1} \n" + "ldr R0,=32000000/5/1000 \n" + "mov R1,#1 \n" + "1: \n" + "subs R0,R1 \n" + "bne 1b \n" + "pop {R0,R1} \n" + ); +} void lcd::sendeByte(char b,uint8_t rw, uint8_t rs ) {