Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <os.h>
- #include <common.h>
- #include "graphics.h"
- #include "utils.h"
- #include "main.h"
- int main(void) {
- enableLink();
- clearScreen();
- int number = 0;
- while (!isKeyPressed(KEY_NSPIRE_ESC) && !isKeyPressed(KEY_84_CLEAR))
- {
- if (number < 2000)
- {
- KEYPAD_84_IO = 3;
- }
- else
- {
- KEYPAD_84_IO = 0;
- }
- number++;
- if (number == 4000)
- number = 0;
- }
- disableLink();
- return 0;
- }
- void enableLink()
- {
- MISC_PORTS |= 0x20;
- }
- void disableLink()
- {
- MISC_PORTS &= 0x20;
- }
- void InterruptHandler()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement