We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2f2f57 commit 81b330dCopy full SHA for 81b330d
CEdev/examples/demo_2/src/main.c
@@ -17,22 +17,22 @@
17
18
/* Put all your code here */
19
void main(void) {
20
- uint8_t i, backlight_level;
+ uint8_t i, bl_level_copy;
21
22
- backlight_level = lcd_GetBacklightLevel();
+ bl_level_copy = lcd_BacklightLevel;
23
24
- for(i = backlight_level; i > 0; i--) {
+ for(i = bl_level_copy; i > 0; i--) {
25
boot_WaitShort();
26
- lcd_SetBacklightLevel(i);
+ lcd_BacklightLevel = i;
27
}
28
29
for(i = 0; i < 255; i++) {
30
31
32
33
34
- lcd_SetBacklightLevel(backlight_level);
+ lcd_BacklightLevel = bl_level_copy;
35
36
/* Clean up for the return to the OS */
37
prgm_CleanUp();
38
-}
+}
0 commit comments