Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * GccApplication3.c
- *
- * Created: 2018-01-22 15:35:27
- * Author : hamlin-6
- */
- #include <avr/io.h>
- int main(void)
- {
- CLKPR = 0x80;
- CLKPR = 0x00;
- LCDCCR = 0x0F;
- LCDCRB = 0xB7;
- LCDFRR = 0x07;
- LCDCRA = 0xC0;
- while (1){
- void writeChar(char ch, int pos){
- char ch;
- int pos;
- int ASCII = {0x1551, 0x0110, 0x1E11, 0x1B11, 0x0B50, 0x1B41, 0x1F41, 0x0111, 0x1F51, 0x1B51};
- if (pos > 5 | pos < 0){ //Kollar om pos ligger på en godtagbar position
- return;
- }
- if (ch > 9 |ch < 0){ //Kollar om ch är en godtagbar siffra
- return;
- }
- for (int i = 0; i < 4; i++){
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement