Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <AVR/IO.h>
- #include <AVR/DELAY.h>
- #include "LIB_BASIC.h"
- #include "LIB_LED_DISPLAY.h"
- int main(void)
- {
- UINT8_T TEMP1=0;
- UINT8_T TEMP2=0;
- DISPLAY_INIT();
- WHILE(1)
- {
- TEMP1 = 128;
- TEMP2 = TEMP1 %10;
- DISPLAY_LED(TEMP2,1);
- TEMP2 = TEMP1%100/10;
- DISPLAY_LED(TEMP2,2);
- TEMP2 = TEMP1/100;
- DISPLAY_LED(TEMP2,2);
- }
- }
Add Comment
Please, Sign In to add comment