Browse Source

- inital add of remote stub with platform io

- add docu for cc2500 and pinout for leonardo
master
philipp schoenberger 7 years ago
parent
commit
eb95af40cf
  1. BIN
      doc/cc2500.pdf
  2. BIN
      doc/pinout-pro_micro.jpg
  3. 2
      remote/.gitignore
  4. 41
      remote/lib/readme.txt
  5. 14
      remote/platformio.ini
  6. 19
      remote/src/main.cpp

BIN
doc/cc2500.pdf

BIN
doc/pinout-pro_micro.jpg

After

Width: 3267  |  Height: 2517  |  Size: 1.5 MiB

2
remote/.gitignore

@ -0,0 +1,2 @@
.pioenvs
.piolibdeps

41
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 <Foo.h>
#include <Bar.h>
// 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

14
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

19
remote/src/main.cpp

@ -0,0 +1,19 @@
//#include <SPI.h>
#include <Arduino.h>
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:
}
Loading…
Cancel
Save