Jump to content
ELFORUM - Forumul electronistilor

Afisare in CodevisionAVR cu sprintf

Recommended Posts

Va rog sa-mi dati si mie o indicatie: De ce nu pot afisa normal datele cu sprintf?! Ca si compilator utilizez CodevisionAVR. La compilare nu obtin nici o eroare. Va multumesc.

void updatevolt(void){
if (temporary != read_adc(0)){
    voltage = (read_adc(0)/3); 
    if(voltage<10){lcd_putsf("Error. U<10V");} 
    else if(voltage>300){lcd_putsf("Overvoltage");}
    else {
    lcd_putsf(" Volti"); }
    temporary = read_adc(0);


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines