diff options
| author | 2019-04-24 11:03:58 -0400 | |
|---|---|---|
| committer | 2019-04-24 11:03:58 -0400 | |
| commit | 4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 (patch) | |
| tree | fe63c3525b2e14f12b4492f87d3e875c4dcec0e4 /frontends/calculator/CEdev/examples/keypad_arrows/src | |
| parent | 6152e965868f3e010c79d91ce3da0036758fda4d (diff) | |
| download | cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.gz cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.bz2 cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.zip | |
add pause to curses, remove unfinished calculator frontend
Diffstat (limited to 'frontends/calculator/CEdev/examples/keypad_arrows/src')
| -rw-r--r-- | frontends/calculator/CEdev/examples/keypad_arrows/src/main.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/frontends/calculator/CEdev/examples/keypad_arrows/src/main.c b/frontends/calculator/CEdev/examples/keypad_arrows/src/main.c deleted file mode 100644 index e358faf..0000000 --- a/frontends/calculator/CEdev/examples/keypad_arrows/src/main.c +++ /dev/null @@ -1,49 +0,0 @@ -#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <tice.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include <keypadc.h>
-
-/* Function Prototypes */
-void fill_screen(uint8_t color);
-
-void main(void) {
- /* Key variable */
- kb_key_t key;
-
- /* Loop until 2nd is pressed */
- do {
- /* Update kb_Data */
- kb_Scan();
-
- /* Load group 7 registers */
- key = kb_Data[7];
-
- switch (key) {
- case kb_Down: /* Change screen color to black */
- fill_screen(0x00);
- break;
- case kb_Right: /* Change screen color to red */
- fill_screen(0xE0);
- break;
- case kb_Up: /* Change screen color to white */
- fill_screen(0xFF);
- break;
- case kb_Left: /* Change screen color to a different red */
- fill_screen(0xC0);
- break;
- default:
- break;
- }
- } while (kb_Data[1] != kb_2nd);
-}
-
-/* Simple way to fill the screen with a given color */
-void fill_screen(uint8_t color) {
- memset(lcd_Ram, color, LCD_SIZE);
-}
|