Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MFS_Display_HAL LCD_i2c_GSOE HSAnalogIn_GSOE
Diff: vorlageByte.cpp
- Revision:
- 0:645e47a5b9db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/vorlageByte.cpp Sat Jul 23 12:46:36 2022 +0000
@@ -0,0 +1,34 @@
+//bibliotheken+programme von jörg veröffentlicht unter
+//https://os.mbed.com/users/jack1930/code/?page=1
+
+//mit if 1=aktivieren, if 0=deaktivieren
+#if 1
+
+#include "mbed.h"
+#include "LCD.h"
+
+lcd mylcd;
+PortOut leds(PortC,0xFF);
+PortIn dips(PortB,0xFF);
+int wert;
+
+void init()
+{
+ mylcd.clear();
+ mylcd.cursorpos(0);
+ mylcd.printf("Vorlage BYTE");
+ dips.mode(PullDown);
+}
+
+int main()
+{
+ init();
+ while(1)
+ {
+ wert = dips;
+ leds = wert;
+ mylcd.cursorpos(0x40);
+ mylcd.printf("dips = %3d",wert);
+ }
+}
+#endif