This repository has been archived by the owner on Oct 17, 2020. It is now read-only.
Releases: paul-pw/LightData
Releases · paul-pw/LightData
alpha 02
everything should work as intended but nothing is tested yet, to see how the api works, please look at the examples in lib/Lightdata/examples
first alpha test Release
- LDStream
- LightData !!not yet working!!
for this to work you must write some stuff in the main file:
#include <LightData.h>
LD::LightData ld(10/*Recieve Pin*/,11/*transmit Pin*/, 1250/*transmit speed*/);
LD::LDStream* LD::LDStream::instance = &ld; //this sets the instance pointer to the correct instance of the class (needed for the ISR function)
int LD::Session_var::id_counter=0;
void setup() {
// put your setup code here, to run once:
ld.beginn();
}
just coppy and paste, thats easiest and remember to only have one setup function
in the arduino ide you can include this like so:
- go to Sketch/Bibliothek einbinden/.ZIP-Bibliothek hinzufügen...
- navigate to the LightData.zip file
- under Sketch/Bibliothek einbinden click on LightData
- all done now just coppy and paste the code from above and it should compile, not yet work tho