Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <display_syscalls.h>
- #include <keyboard_syscalls.h>
- #include <display_syscalls.h>
- #include <keyboard_syscalls.h>
- #include <display_syscalls.h>
- #include <display.h>
- #include <keyboard.hpp>
- #include <color.h>
- #include <RTC_syscalls.h>
- #include <CONVERT_syscalls.h>
- void plot(int x0, int y0, int color);
- int main() {
- int key;
- int msg = 1;
- int done = 0;
- while(!done) {
- PrintXY_2(TEXT_MODE_NORMAL, 1, 1, msg, TEXT_COLOR_BLACK);
- char buffer[10];
- strcpy(buffer," ");
- itoa(msg, buffer+2);
- PrintXY( 1, 2, buffer, TEXT_MODE_NORMAL, TEXT_COLOR_BLACK);
- Bdisp_PutDisp_DD();
- key = PRGM_GetKey;
- switch(key) {
- case KEY_PRGM_UP:
- msg = 1+msg;
- break;
- case KEY_PRGM_DOWN:
- msg = 1-msg;
- break;
- case KEY_PRGM_MENU:
- return 1;
- break;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement