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: mbed
Diff: main.cpp
- Revision:
- 8:6f91c39dbabc
- Parent:
- 7:94c73e4168d8
- Child:
- 9:b30caa6d008f
--- a/main.cpp Sun Dec 04 13:30:50 2022 +0000
+++ b/main.cpp Sun Dec 04 13:55:43 2022 +0000
@@ -200,26 +200,28 @@
{
int16 v;
abDisplayMemory[0] = 16; /* Aus */
+ v = (byte)(w / 1000);
+ abDisplayMemory[1] = v; /* Hunderter */
+ w = w - (v * 1000);
v = (byte)(w / 100);
- abDisplayMemory[1] = v; /* Hunderter */
+ abDisplayMemory[2] = v; /* Zehner */
w = w - (v * 100);
v = (byte)(w / 10);
- abDisplayMemory[2] = v; /* Zehner */
- w = w - (v * 10);
- abDisplayMemory[3] = (byte)w; /* Einer */
+ abDisplayMemory[3] = v; /* Einer */
}
void vDisplayDiff( word w )
{
int16 v;
abDisplayMemory[0] = 12; /* "C" */
+ v = (byte)(w / 1000);
+ abDisplayMemory[1] = v; /* Hunderter */
+ w = w - (v * 1000);
v = (byte)(w / 100);
- abDisplayMemory[1] = v; /* Hunderter */
+ abDisplayMemory[2] = v; /* Zehner */
w = w - (v * 100);
v = (byte)(w / 10);
- abDisplayMemory[2] = v; /* Zehner */
- w = w - (v * 10);
- abDisplayMemory[3] = (byte)w; /* Einer */
+ abDisplayMemory[3] = v; /* Einer */
}
void vSetForStart( void )