Skip to content

Commit

Permalink
organize and readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Sep 25, 2016
1 parent 70df184 commit 7685bc0
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 35 deletions.
29 changes: 16 additions & 13 deletions README.md
@@ -1,8 +1,12 @@
# MCUs SCAFFOLD
# MCUs SCAFFOLDs

Collection of Rakefiles to start of and avoid IDEs.

Here you'll find a pure C, C++ and Arduino C++ scaffolds with optional libraries support.
Or graphically:

AVR + ~~IDE~~ Ruby = FUN
ESP + ~~IDE~~ Ruby = FUN
ARM + ~~IDE~~ Ruby = FUN

Just clone:

Expand All @@ -14,25 +18,24 @@ or download:

https://github.com/nofxx/mcu_scaffold/tarball/master # .tar.gz

And choose a scaffold, <LANG> options: c, cpp, asm or arduino:

cp -r mcu_scaffold/<LANG> ~/newproject
## And choose a MCU:


## Common Usage
## AVR

```bash
$ rake -T # see all tasks
$ rake # build the project, flash to the arduino
$ rake clobber # clean the project
```
The 8bit father of all. From ATMEL, you know it from Arduino.
The CPU, the famous ATmega328.

## ARM

## Board Resources
Up to 64 bits of linux fun.
Lots of CPUs here, and nevermind if you have a kernel to worry about that.

* ATMega328P datasheet - http://www.atmel.com/dyn/resources/prod_documents/doc8161.pdf
* Arduino UNO Schematic - http://arduino.cc/en/uploads/Main/arduino-uno-schematic.pdf
## ESP

Xtensa CPU. The cheap answer to ARM's 32bits reign.
With wifi!


## Getting Started
Expand Down
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions esp/README.md
@@ -0,0 +1,15 @@
# ESP32/ESP8266

Xtensa Expressif Chipsets

NodeMCUs, WEmos...

## Software

```
pacman -Sy --no-confirm esptool luatool
```

Optional for NodeMCU's lua dev: `luatool`.
Also, that chips runs debug in crazy `54880 BPS`.
You'll want to install `picocom` as the only terminal that supports it.
5 changes: 5 additions & 0 deletions esp/cpp/src/TheAppParams.h
@@ -0,0 +1,5 @@
#define MY_SSID "YOUR_WIFI_SSID"
#define MY_PWD "YOUR_WIFI_PASSWORD"
#define MY_HOST "YOUR_WEBSITE"
#define MY_HOSTIP "YOUR_WEBSITE_IP"
#define MY_WEB_PWD "REQUEST_PASSWORD"
16 changes: 0 additions & 16 deletions esp/cpp/src/main.c

This file was deleted.

27 changes: 27 additions & 0 deletions esp/cpp/src/main.cpp
@@ -0,0 +1,27 @@
#define DEBUG 1 //Print to Serial
#define APPPIN 12 // Pin to Relay
#define REFRESHTIME 1 //MINUTES
#define WHILE_TO 5000 // milliseconds
#define PRINTDEBUG(STR) \
{ \
if (DEBUG) Serial.println(STR); \
}
#define BIAS 1
#include <ESP8266WiFi.h>
#include "TheAppParams.h" // Change this file params

//INIT
const char* ssid = MY_SSID;
const char* password = MY_PWD;
const char* host = MY_HOST;
const char* hostIP = MY_HOSTIP;
String url = "/getIP.php?psswd=";
WiFiServer server(80);

//Class defintion of the water heater control
class appControl {
public:
// appControl();
void begin(int pin) {
//pinMode(appPin, OUTPUT);
//digitalWrite(appPin, currentState);
6 changes: 0 additions & 6 deletions esp/install

This file was deleted.

0 comments on commit 7685bc0

Please sign in to comment.