cheaven / arduino-lite Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/arduino-lite
Automatically exported from code.google.com/p/arduino-lite
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.
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.