error: ‘UCSR0A’ was not declared in this scope

Home Forums Botanicalls Community error: ‘UCSR0A’ was not declared in this scope

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1360
    joshd
    Participant

    Hola. I was just adjusting the code for Spike to point the botanicalls at the new username, and also to adjust the moist/dry/watered values.

    But when I open (the latest download OR my own copy of) BotanicallsTwitter.pde and try to upload or compile in Arduino 11, I get the following error:

    In function 'void uart_putchar(char)':

    error: 'UCSR0A' was not declared in this scope

    in the “utility” pde file – which is, IIRC, the helper library from ladyada.

    Here’s the function:

    void uart_putchar(char c) {

    while (!(UCSR0A & _BV(UDRE0)));

    UDR0 = c;

    }

    Just to be sure that I didn’t damage anything, I downloaded the latest version of the source and opened it in Arduino 11, and hit compile. Same error.

    Huh.

    What’s odd is, I’ve successfully uploaded the original source code to the botanicalls in the past, when I had an LED problem, and I didn’t get this error, then.

    I’m stumped. Any suggestions?

    #1699
    Rob Faludi
    Keymaster

    Check which board you have selected. On the Tools menu under Boards you should choose “Arduino NG or older w/ATmega168”

    #1700
    joshd
    Participant

    Aha. I had NG with ATmega8 selected. Thanks much.

    #1701
    Psyicman
    Participant

    I’m having a simular problem only I have selected NG w/ATmega168

    28: error: ivalid suffix “ANther” on integer contant In function ‘void setup()’:

    In function ‘uint8_tposttweet(char*)’:

    What do I do?

    #1702
    Psyicman
    Participant

    Serial.begin(9600); // set the data rate for the hardware serial port

    mySerial.begin(9600); // set the data rate for the software serail port

    putstring_nl(“”); // begin printing to debug output

    putstring(“Botanicalls v”);

    putstring_nl(VERSION);

    if(digitalRead(SWITCH)==LOW) { // show the username and password if the test switch is held on startup

    putstring(“ID: “);

    putstring_nl(USERNAMEPASS);

    }

    #1703
    Psyicman
    Participant

    is this the proper code? I just coppied and pasted it here.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.


New kits are here!

Categories

Pothos Plant Tweets

    Flickr Feed

    www.flickr.com
    More photos or video tagged with botanicalls on Flickr

    Meta