Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Porting

arjo129 edited this page Dec 26, 2012 · 7 revisions

All arduino compatible boards work out of the box. The core requirements for processors is that there is more than 300 bytes of ram. If you do not have an arduino compatible board there needs to be a lib-c and you need to replicate the analogRead function somewhere.

Porting to a new board

Ensure you have a port of lib-c to the platform. The lib-c should contain a working math.h implementation. Create a file called Arduino.h add the following:

int analogRead(){
 //Implement your own AnalogRead here
}

Note: The library expects a range between 0-1024. If the range of your ADC exceeds this it is likely to cause problems.

Clone this wiki locally