diff --git a/doc/cc2500.pdf b/doc/cc2500.pdf new file mode 100644 index 0000000..48edff1 Binary files /dev/null and b/doc/cc2500.pdf differ diff --git a/doc/pinout-pro_micro.jpg b/doc/pinout-pro_micro.jpg new file mode 100644 index 0000000..1c4b0b6 Binary files /dev/null and b/doc/pinout-pro_micro.jpg differ diff --git a/remote/.gitignore b/remote/.gitignore new file mode 100644 index 0000000..6c69f4c --- /dev/null +++ b/remote/.gitignore @@ -0,0 +1,2 @@ +.pioenvs +.piolibdeps diff --git a/remote/lib/readme.txt b/remote/lib/readme.txt new file mode 100644 index 0000000..131f1bf --- /dev/null +++ b/remote/lib/readme.txt @@ -0,0 +1,41 @@ + +This directory is intended for the project specific (private) libraries. +PlatformIO will compile them to static libraries and link to executable file. + +The source code of each library should be placed in separate directory, like +"lib/private_lib/[here are source files]". + +For example, see how can be organized `Foo` and `Bar` libraries: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional, custom build options, etc) http://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- readme.txt --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +Then in `src/main.c` you should use: + +#include +#include + +// rest H/C/CPP code + +PlatformIO will find your libraries automatically, configure preprocessor's +include paths and build them. + +More information about PlatformIO Library Dependency Finder +- http://docs.platformio.org/page/librarymanager/ldf.html diff --git a/remote/platformio.ini b/remote/platformio.ini new file mode 100644 index 0000000..ea3121a --- /dev/null +++ b/remote/platformio.ini @@ -0,0 +1,14 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; http://docs.platformio.org/page/projectconf.html + +[env:leonardo] +platform = atmelavr +board = leonardo +framework = arduino diff --git a/remote/src/main.cpp b/remote/src/main.cpp new file mode 100644 index 0000000..0c64e3b --- /dev/null +++ b/remote/src/main.cpp @@ -0,0 +1,19 @@ +//#include +#include + +void setup() { + /* while(Serial) { */ + /* delay(500); */ + /* } */ + Serial.begin(115200); + Serial.println("Remote ON!"); + + //SPI.begin(); + //CC2500.init(); + +} + +void loop() { + // put your main code here, to run repeatedly: + +}