Giter VIP home page Giter VIP logo

arduino-lite's People

Contributors

cheaven avatar

Watchers

 avatar

arduino-lite's Issues

Arduino IDE integration

Is there any way to have the ARDUINO IDE use the cores from this, or even use 
the IDE as a front end GUI for this, or have a GUI implemented for this.

Original issue reported on code.google.com by [email protected] on 9 Dec 2011 at 2:10

I miss A0-An definitions for analog pins

I miss A0-An definitions for analog pins.

When i want to set analog pins to in/out or doing digital write/read i have to 
calculate the pin number, so i added some definitions to arduino_lit.h, i don't 
know if this is the proper way/file to do it, but works for me:

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
    #define A0  54
    #define A1  55
    #define A2  56
    #define A3  57
    #define A4  58
    #define A5  59
    #define A6  60
    #define A7  61
    #define A8  62
    #define A9  63
    #define A10 64
    #define A11 65
    #define A12 66
    #define A13 67
    #define A14 68
    #define A15 69
#else
    #define A0  14
    #define A1  15
    #define A2  16
    #define A3  17
    #define A4  18
    #define A5  19
    #define A6  20
    #define A7  21
#endif

Original issue reported on code.google.com by [email protected] on 13 Apr 2012 at 1:24

License

Not really a issue but figured better here than email someone directly.

The google code project suggests the code is released unter LGPL 
(I am trying to build a small autopilot using it and wanted to know the 
licensing before hand ;))
Is that correct? I was not able to find any license related info in the 
repository.

Best regards and really awesome library!

Tobias 

Original issue reported on code.google.com by Tobias.Raeder on 20 Apr 2012 at 3:48

Error reading adc in atmega1280, channel>7

There is an error in wiring_analog.c line 50.

ADMUX = (analog_reference << 6) | (pin & 0x0F);

ADMUX bit 3 is not channel selection bit, so the original arduino looks the 
proper way:

#if defined(ADMUX)
    ADMUX = (analog_reference << 6) | (pin & 0x07);
#endif


Also prefer original arduino here:

#if defined(ADCSRB) && defined(MUX5)
    // the MUX5 bit of ADCSRB selects whether we're reading from channels
    // 0 to 7 (MUX5 low) or 8 to 15 (MUX5 high).
    ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);
#endif

Works with another devices, not only 1280.
But i edited this way:

#if defined(ADCSRB) && defined(MUX5)
    // the MUX5 bit of ADCSRB selects whether we're reading from channels
    // 0 to 7 (MUX5 low) or 8 to 15 (MUX5 high).
    //ADCSRB = (ADCSRB & ~(1 << MUX5)) | (((pin >> 3) & 0x01) << MUX5);
    if( pin > 7 ) sbi(ADCSRB, MUX5);
    else          cbi(ADCSRB, MUX5);
#endif

Is easy to undertand, generates shorter & faster code.

Regards.

Original issue reported on code.google.com by [email protected] on 13 Apr 2012 at 1:06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.