#include #include #include"Hardware.h" #include "Uart.h" #include"Print.h" #include "lcd-routines.h" #include #ifndef F_CPU #define F_CPU 7372800 #endif #include uint16_t ReadChannel(uint8_t mux) { uint8_t i; uint16_t result; ADMUX = 0x00; // Kanal waehlen ADMUX |= (1<Spannung2) { Spannung2 = adcval; Time =i; } } uint8_t j =(8-Time); for(i=1;i<=j;i++) { lcd_clear(); set_cursor(2,2); lcd_string("Bitte warten...."); MOTOR_Links(); DELAY(DELAY_LS_1s); } //...............PROBLEMTEIL............................................................................ lcd_clear(); lcd_string("Solar Station"); set_cursor(0,2); lcd_string("Suchvorgang"); set_cursor(4,3); lcd_string("abgeschlossen"); set_cursor(4,4); lcd_string("Spannung"); set_cursor(13,4); adcval = ReadChannel(1); x=adcval/0.4; send_int(x); set_cursor(19,4); lcd_string("mV"); } } void send_int(uint16_t zahl){ char Buffer[20]; //umwandlung von Dezimal in ASCII itoa(zahl, Buffer, 10 ); lcd_string(Buffer);